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

Unified Diff: lib/stats.js

Issue 29338534: Issue 3826 - Filter preference change events (Closed)
Patch Set: Fixed some issues Created March 23, 2016, 11:32 a.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
« lib/events.js ('K') | « lib/prefs.js ('k') | lib/uninstall.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/stats.js
===================================================================
--- a/lib/stats.js
+++ b/lib/stats.js
@@ -58,11 +58,8 @@
}
});
-Prefs.onChanged.addListener(function(name)
+Prefs.on("show_statsinicon", function()
{
- if (name != "show_statsinicon")
- return;
-
ext.pages.query({}, function(pages)
{
for (var i = 0; i < pages.length; i++)
« lib/events.js ('K') | « lib/prefs.js ('k') | lib/uninstall.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld