| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * This file is part of Adblock Plus <http://adblockplus.org/>, | |
| 3 * Copyright (C) 2006-2014 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 // | |
| 20 // This file has been generated automatically from Adblock Plus source code | |
| 21 // | |
| 22 | |
| 23 (function (_patchFunc1) { | |
| 24 var listeners = []; | |
| 25 var FilterNotifier = { | |
| 26 addListener: function (listener) { | |
| 27 if (listeners.indexOf(listener) >= 0) | |
| 28 return ; | |
| 29 listeners.push(listener); | |
| 30 } | |
| 31 , | |
| 32 removeListener: function (listener) { | |
| 33 var index = listeners.indexOf(listener); | |
| 34 if (index >= 0) | |
| 35 listeners.splice(index, 1); | |
| 36 } | |
| 37 , | |
| 38 triggerListeners: function (action, item, param1, param2, param3) { | |
| 39 for (var _loopIndex0 = 0; | |
| 40 _loopIndex0 < listeners.length; ++ _loopIndex0) { | |
| 41 var listener = listeners[_loopIndex0]; | |
| 42 listener(action, item, param1, param2, param3); | |
| 43 } | |
| 44 } | |
| 45 | |
| 46 }; | |
| 47 if (typeof _patchFunc1 != "undefined") | |
| 48 eval("(" + _patchFunc1.toString() + ")()"); | |
| 49 window.FilterNotifier = FilterNotifier; | |
| 50 } | |
| 51 )(window.FilterNotifierPatch); | |
| OLD | NEW |