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

Unified Diff: lib/iniParser.js

Issue 29946572: Issue 7094 - Keep subscription filters by text only (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Fix bug Created Nov. 19, 2018, 2:28 a.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
@@ -102,21 +102,17 @@
case "subscription filters":
if (this.subscriptions.length)
{
let currentSubscription = this.subscriptions[
this.subscriptions.length - 1
];
for (let text of this._curObj)
- {
- let filter = Filter.fromText(text);
- currentSubscription.addFilter(filter);
- filter.addSubscription(currentSubscription);
- }
+ currentSubscription.addFilterText(text);
}
break;
}
}
if (line === null)
return;
« lib/filterListener.js ('K') | « lib/filterStorage.js ('k') | lib/subscriptionClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld