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

Unified Diff: lib/init.js

Issue 10420020: Made sure FilterEngine instances are always initialized (Closed)
Patch Set: Using a generic messaging mechanism Created May 23, 2013, 6:35 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
« no previous file with comments | « include/AdblockPlus/tr1_functional.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/init.js
===================================================================
--- a/lib/init.js
+++ b/lib/init.js
@@ -1,8 +1,5 @@
-_abpInitialized = false;
-require("filterNotifier").FilterNotifier.addListener(function(action)
-{
- if (action === "load")
- {
- _abpInitialized = true;
- }
-});
+require("filterNotifier").FilterNotifier.addListener(function(action)
+{
+ if (action === "load")
+ _triggerEvent("init");
+});
« no previous file with comments | « include/AdblockPlus/tr1_functional.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld