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: Created March 17, 2016, 4:30 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') | lib/events.js » ('J')
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') | lib/events.js » ('J')

Powered by Google App Engine
This is Rietveld