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

Delta Between Two Patch Sets: lib/filterListener.js

Issue 29934588: Issue 7094 - Encapsulate management of subscription filters (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Left Patch Set: Reworked Created Nov. 3, 2018, 2:20 a.m.
Right Patch Set: Remove hasFilter and related code Created Nov. 18, 2018, 10:21 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | lib/filterStorage.js » ('j') | lib/subscriptionClasses.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 function onLoad() 340 function onLoad()
341 { 341 {
342 isDirty = 0; 342 isDirty = 0;
343 343
344 defaultMatcher.clear(); 344 defaultMatcher.clear();
345 ElemHide.clear(); 345 ElemHide.clear();
346 ElemHideEmulation.clear(); 346 ElemHideEmulation.clear();
347 ElemHideExceptions.clear(); 347 ElemHideExceptions.clear();
348 Snippets.clear(); 348 Snippets.clear();
349
349 for (let subscription of filterStorage.subscriptions()) 350 for (let subscription of filterStorage.subscriptions())
350 { 351 {
351 if (!subscription.disabled) 352 if (!subscription.disabled)
352 addSubscriptionFilters(subscription); 353 addSubscriptionFilters(subscription);
353
354 subscription.freeFilters();
355 } 354 }
356 } 355 }
357 356
358 function onSave() 357 function onSave()
359 { 358 {
360 isDirty = 0; 359 isDirty = 0;
361 } 360 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld