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: 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
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++)

Powered by Google App Engine
This is Rietveld