From 7660abdfb4aeb1239ed54d43cd278870392524e7 Mon Sep 17 00:00:00 2001 From: Erik Arvidsson Date: Mon, 25 Nov 2013 17:14:23 -0500 Subject: [PATCH] Add work around for Firefox bug related to window methods --- src/wrappers/Window.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wrappers/Window.js b/src/wrappers/Window.js index 588cb1d..4575273 100644 --- a/src/wrappers/Window.js +++ b/src/wrappers/Window.js @@ -27,12 +27,18 @@ pseudo); }; + // Work around for https://bugzilla.mozilla.org/show_bug.cgi?id=943065 + delete window.getComputedStyle; + ['addEventListener', 'removeEventListener', 'dispatchEvent'].forEach( function(name) { OriginalWindow.prototype[name] = function() { var w = wrap(this || window); return w[name].apply(w, arguments); }; + + // Work around for https://bugzilla.mozilla.org/show_bug.cgi?id=943065 + delete window[name]; }); mixin(Window.prototype, {