Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/iniParser.js

Issue 29934588: Issue 7094 - Encapsulate management of subscription filters (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Remove hasFilter and related code Created Nov. 18, 2018, 10:21 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/iniParser.js
===================================================================
--- a/lib/iniParser.js
+++ b/lib/iniParser.js
@@ -104,17 +104,17 @@
if (this.subscriptions.length)
{
let currentSubscription = this.subscriptions[
this.subscriptions.length - 1
];
for (let text of this._curObj)
{
let filter = Filter.fromText(text);
- currentSubscription.filters.push(filter);
+ currentSubscription.addFilter(filter);
filter.addSubscription(currentSubscription);
}
}
break;
}
}
if (line === null)
« no previous file with comments | « lib/filterStorage.js ('k') | lib/subscriptionClasses.js » ('j') | lib/subscriptionClasses.js » ('J')

Powered by Google App Engine
This is Rietveld