| OLD | NEW |
| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 filterNotifier.on("filter.lastHit", onFilterLastHit); | 101 filterNotifier.on("filter.lastHit", onFilterLastHit); |
| 102 filterNotifier.on("filter.added", onFilterAdded); | 102 filterNotifier.on("filter.added", onFilterAdded); |
| 103 filterNotifier.on("filter.removed", onFilterRemoved); | 103 filterNotifier.on("filter.removed", onFilterRemoved); |
| 104 filterNotifier.on("filter.disabled", onFilterDisabled); | 104 filterNotifier.on("filter.disabled", onFilterDisabled); |
| 105 filterNotifier.on("filter.moved", onGenericChange); | 105 filterNotifier.on("filter.moved", onGenericChange); |
| 106 | 106 |
| 107 filterNotifier.on("subscription.added", onSubscriptionAdded); | 107 filterNotifier.on("subscription.added", onSubscriptionAdded); |
| 108 filterNotifier.on("subscription.removed", onSubscriptionRemoved); | 108 filterNotifier.on("subscription.removed", onSubscriptionRemoved); |
| 109 filterNotifier.on("subscription.disabled", onSubscriptionDisabled); | 109 filterNotifier.on("subscription.disabled", onSubscriptionDisabled); |
| 110 filterNotifier.on("subscription.updated", onSubscriptionUpdated); | 110 filterNotifier.on("subscription.updated", onSubscriptionUpdated); |
| 111 filterNotifier.on("subscription.moved", onGenericChange); | |
| 112 filterNotifier.on("subscription.title", onGenericChange); | 111 filterNotifier.on("subscription.title", onGenericChange); |
| 113 filterNotifier.on("subscription.fixedTitle", onGenericChange); | 112 filterNotifier.on("subscription.fixedTitle", onGenericChange); |
| 114 filterNotifier.on("subscription.homepage", onGenericChange); | 113 filterNotifier.on("subscription.homepage", onGenericChange); |
| 115 filterNotifier.on("subscription.downloadStatus", onGenericChange); | 114 filterNotifier.on("subscription.downloadStatus", onGenericChange); |
| 116 filterNotifier.on("subscription.lastCheck", onGenericChange); | 115 filterNotifier.on("subscription.lastCheck", onGenericChange); |
| 117 filterNotifier.on("subscription.errors", onGenericChange); | 116 filterNotifier.on("subscription.errors", onGenericChange); |
| 118 | 117 |
| 119 filterNotifier.on("load", onLoad); | 118 filterNotifier.on("load", onLoad); |
| 120 filterNotifier.on("save", onSave); | 119 filterNotifier.on("save", onSave); |
| 121 | 120 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 328 |
| 330 function onLoad() | 329 function onLoad() |
| 331 { | 330 { |
| 332 isDirty = 0; | 331 isDirty = 0; |
| 333 | 332 |
| 334 defaultMatcher.clear(); | 333 defaultMatcher.clear(); |
| 335 ElemHide.clear(); | 334 ElemHide.clear(); |
| 336 ElemHideEmulation.clear(); | 335 ElemHideEmulation.clear(); |
| 337 ElemHideExceptions.clear(); | 336 ElemHideExceptions.clear(); |
| 338 Snippets.clear(); | 337 Snippets.clear(); |
| 339 for (let subscription of FilterStorage.subscriptions) | 338 for (let subscription of FilterStorage.subscriptions()) |
| 340 { | 339 { |
| 341 if (!subscription.disabled) | 340 if (!subscription.disabled) |
| 342 addFilters(subscription.filters); | 341 addFilters(subscription.filters); |
| 343 } | 342 } |
| 344 } | 343 } |
| 345 | 344 |
| 346 function onSave() | 345 function onSave() |
| 347 { | 346 { |
| 348 isDirty = 0; | 347 isDirty = 0; |
| 349 } | 348 } |
| OLD | NEW |