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

Unified Diff: lib/synchronizer.js

Issue 29853561: Issue 6854 - Remove deprecated FilterNotifier methods (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Aug. 11, 2018, 2:43 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/synchronizer.js
===================================================================
--- a/lib/synchronizer.js
+++ b/lib/synchronizer.js
@@ -137,17 +137,17 @@
subscription.expires = Math.round(
downloadable.hardExpiration / MILLIS_IN_SECOND
);
},
_onDownloadStarted(downloadable)
{
let subscription = Subscription.fromURL(downloadable.url);
- FilterNotifier.triggerListeners("subscription.downloading", subscription);
+ FilterNotifier.emit("subscription.downloading", subscription);
},
_onDownloadSuccess(downloadable, responseText, errorCallback,
redirectCallback)
{
let lines = responseText.split(/[\r\n]+/);
let headerMatch = /\[Adblock(?:\s*Plus\s*([\d.]+)?)?\]/i.exec(lines[0]);
if (!headerMatch)
« no previous file with comments | « lib/subscriptionClasses.js ('k') | test/filterNotifier.js » ('j') | test/filterNotifier.js » ('J')

Powered by Google App Engine
This is Rietveld