Index: lib/compat.js |
=================================================================== |
--- a/lib/compat.js |
+++ b/lib/compat.js |
@@ -11,16 +11,17 @@ |
* 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/>. |
*/ |
// TODO: These need to be defined properly |
+var window = this; |
function XMLHttpRequest() {}; |
// |
// Module framework stuff |
// |
function require(module) |
{ |
@@ -255,17 +256,17 @@ FakeTimer.prototype = |
{ |
this.callback = callback; |
this.delay = delay; |
this.scheduleTimeout(); |
}, |
scheduleTimeout: function() |
{ |
var me = this; |
- window.setTimeout(function() |
+ setTimeout(function() |
{ |
try |
{ |
me.callback(); |
} |
catch(e) |
{ |
Cu.reportError(e); |