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

Unified Diff: node_modules/filterNotifier.js

Issue 29336753: Issue 3671 - Split out contentBlockerList API (Closed)
Patch Set: Created Feb. 20, 2016, 9:59 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: node_modules/filterNotifier.js
diff --git a/node_modules/filterNotifier.js b/node_modules/filterNotifier.js
new file mode 100644
index 0000000000000000000000000000000000000000..d745c59bf912614bfeabfd59648a031b006d2180
--- /dev/null
+++ b/node_modules/filterNotifier.js
@@ -0,0 +1,51 @@
+/*
+ * This file is part of Adblock Plus <https://adblockplus.org/>,
Sebastian Noack 2016/02/21 02:21:08 Why didn't you leave filter classes.js as is, not
kzar 2016/02/21 11:31:19 Done.
+ * Copyright (C) 2006-2016 Eyeo GmbH
+ *
+ * Adblock Plus is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3 as
+ * published by the Free Software Foundation.
+ *
+ * Adblock Plus is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+//
+// This file has been generated automatically, relevant repositories:
+// * https://hg.adblockplus.org/jshydra/
+//
+
+var listeners = [];
+var FilterNotifier = exports.FilterNotifier = {
+ addListener: function(listener)
+ {
+ if (listeners.indexOf(listener) >= 0)
+ {
+ return;
+ }
+ listeners.push(listener);
+ },
+ removeListener: function(listener)
+ {
+ var index = listeners.indexOf(listener);
+ if (index >= 0)
+ {
+ listeners.splice(index, 1);
+ }
+ },
+ triggerListeners: function(action, item, param1, param2, param3)
+ {
+ var list = listeners.slice();
+ for (var _loopIndex0 = 0; _loopIndex0 < list.length; ++_loopIndex0)
+ {
+ var listener = list[_loopIndex0];
+ listener(action, item, param1, param2, param3);
+ }
+ }
+};
+

Powered by Google App Engine
This is Rietveld