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

Unified Diff: lib/icon.js

Issue 29339020: Issue 3868 - Use the new FilterNotifier API (Closed)
Patch Set: Updated depdendencies and use EventEmitter.listeners() Created March 24, 2016, 3:29 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
« no previous file with comments | « lib/filterComposer.js ('k') | lib/messaging.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/icon.js
===================================================================
--- a/lib/icon.js
+++ b/lib/icon.js
@@ -72,14 +72,11 @@
}
}
-FilterNotifier.addListener((action, page, filter) =>
+FilterNotifier.on("page.WhitelistingStateRevalidate", (page, filter) =>
{
- if (action == "page.WhitelistingStateRevalidate")
- {
- whitelistedState.set(page, !!filter);
- if (canUpdateIcon)
- setIcon(page);
- }
+ whitelistedState.set(page, !!filter);
+ if (canUpdateIcon)
+ setIcon(page);
});
function renderFrames(notificationType)
« no previous file with comments | « lib/filterComposer.js ('k') | lib/messaging.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld