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

Unified Diff: lib/filterListener.js

Issue 29336735: Issue 394 - hit statistics tool data collection (core) (Closed)
Patch Set: Include modules conditionally update Downloader to accept callback for download event Created March 17, 2016, 6:09 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/filterListener.js
===================================================================
--- a/lib/filterListener.js
+++ b/lib/filterListener.js
@@ -30,6 +30,12 @@
let {ActiveFilter, RegExpFilter, ElemHideBase, CSSPropertyFilter} =
require("filterClasses");
let {Prefs} = require("prefs");
+let FilterHits = null;
+try
+{
+ ({FilterHits} = require("filterHits"));
+}
+catch (e) {}
/**
* Value of the FilterListener.batchMode property.
@@ -95,6 +101,8 @@
{
FilterStorage.resetHitCounts();
FilterListener.setDirty(0); // Force saving to disk
+ if (FilterHits)
+ FilterHits.resetFilterHits();
Prefs.recentReports = [];
}
« lib/downloader.js ('K') | « lib/downloader.js ('k') | lib/filterStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld