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 typo in comment Created March 18, 2016, 6:15 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/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++)
« no previous file with comments | « lib/prefs.js ('k') | lib/uninstall.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld