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

Unified Diff: lib/init.js

Issue 10405034: Add a method to check whether ABP is fully initialised (Closed)
Patch Set: Created May 15, 2013, 2:55 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 | « include/AdblockPlus/FilterEngine.h ('k') | libadblockplus.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/init.js
===================================================================
new file mode 100644
--- /dev/null
+++ b/lib/init.js
@@ -0,0 +1,8 @@
+_abpInitialized = false;
+require("filterNotifier").FilterNotifier.addListener(function(action)
+{
+ if (action === "load")
+ {
+ _abpInitialized = true;
+ }
+});
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | libadblockplus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld