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

Side by Side Diff: node_modules/filterNotifier.js

Issue 29336753: Issue 3671 - Split out contentBlockerList API (Closed)
Patch Set: Created Feb. 20, 2016, 9:59 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * 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.
3 * Copyright (C) 2006-2016 Eyeo GmbH
4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 //
19 // This file has been generated automatically, relevant repositories:
20 // * https://hg.adblockplus.org/jshydra/
21 //
22
23 var listeners = [];
24 var FilterNotifier = exports.FilterNotifier = {
25 addListener: function(listener)
26 {
27 if (listeners.indexOf(listener) >= 0)
28 {
29 return;
30 }
31 listeners.push(listener);
32 },
33 removeListener: function(listener)
34 {
35 var index = listeners.indexOf(listener);
36 if (index >= 0)
37 {
38 listeners.splice(index, 1);
39 }
40 },
41 triggerListeners: function(action, item, param1, param2, param3)
42 {
43 var list = listeners.slice();
44 for (var _loopIndex0 = 0; _loopIndex0 < list.length; ++_loopIndex0)
45 {
46 var listener = list[_loopIndex0];
47 listener(action, item, param1, param2, param3);
48 }
49 }
50 };
51
OLDNEW

Powered by Google App Engine
This is Rietveld