| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the Adblock Plus extension, | 2 * This file is part of the Adblock Plus extension, |
| 3 * Copyright (C) 2006-2012 Eyeo GmbH | 3 * Copyright (C) 2006-2012 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU General Public License | 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/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 // TODO: These need to be defined properly |
| 19 function XMLHttpRequest() {}; |
| 20 var window = { |
| 21 setTimeout: function(){}, |
| 22 requestFileSystem: function(){} |
| 23 }; |
| 24 |
| 18 // | 25 // |
| 19 // Module framework stuff | 26 // Module framework stuff |
| 20 // | 27 // |
| 21 | 28 |
| 22 function require(module) | 29 function require(module) |
| 23 { | 30 { |
| 24 return require.scopes[module]; | 31 return require.scopes[module]; |
| 25 } | 32 } |
| 26 require.scopes = {__proto__: null}; | 33 require.scopes = {__proto__: null}; |
| 27 | 34 |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 status: -1, | 599 status: -1, |
| 593 notificationCallbacks: {}, | 600 notificationCallbacks: {}, |
| 594 loadFlags: 0, | 601 loadFlags: 0, |
| 595 INHIBIT_CACHING: 0, | 602 INHIBIT_CACHING: 0, |
| 596 VALIDATE_ALWAYS: 0, | 603 VALIDATE_ALWAYS: 0, |
| 597 QueryInterface: function() | 604 QueryInterface: function() |
| 598 { | 605 { |
| 599 return this; | 606 return this; |
| 600 } | 607 } |
| 601 }; | 608 }; |
| OLD | NEW |