OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 16 matching lines...) Expand all Loading... |
27 } | 27 } |
28 require.scopes = {__proto__: null}; | 28 require.scopes = {__proto__: null}; |
29 | 29 |
30 function importAll(module, globalObj) | 30 function importAll(module, globalObj) |
31 { | 31 { |
32 var exports = require(module); | 32 var exports = require(module); |
33 for (var key in exports) | 33 for (var key in exports) |
34 globalObj[key] = exports[key]; | 34 globalObj[key] = exports[key]; |
35 } | 35 } |
36 | 36 |
37 onShutdown = { | 37 const onShutdown = { |
38 done: false, | 38 done: false, |
39 add: function() {}, | 39 add: function() {}, |
40 remove: function() {} | 40 remove: function() {} |
41 }; | 41 }; |
42 | 42 |
43 // | 43 // |
44 // XPCOM emulation | 44 // XPCOM emulation |
45 // | 45 // |
46 | 46 |
47 const Components = | 47 const Components = |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 var kValue = o[k]; | 434 var kValue = o[k]; |
435 if (predicate.call(thisArg, kValue, k, o)) { | 435 if (predicate.call(thisArg, kValue, k, o)) { |
436 return kValue; | 436 return kValue; |
437 } | 437 } |
438 // e. Increase k by 1. | 438 // e. Increase k by 1. |
439 k++; | 439 k++; |
440 } | 440 } |
441 } | 441 } |
442 }); | 442 }); |
443 } | 443 } |
OLD | NEW |