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

Unified Diff: background.js

Issue 29338534: Issue 3826 - Filter preference change events (Closed)
Patch Set: Rebased and fixed a typo Created March 19, 2016, 7:48 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 | « no previous file | lib/events.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -85,11 +85,7 @@
refreshIconAndContextMenuForAllPages();
});
-Prefs.onChanged.addListener(function(name)
-{
- if (name == "shouldShowBlockElementMenu")
- refreshIconAndContextMenuForAllPages();
-});
+Prefs.on("shouldShowBlockElementMenu", refreshIconAndContextMenuForAllPages);
// This is a hack to speedup loading of the options page on Safari.
// Once we replaced the background page proxy with message passing
« no previous file with comments | « no previous file | lib/events.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld