Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Add work around for Firefox bug related to window methods
Browse files Browse the repository at this point in the history
  • Loading branch information
arv committed Nov 25, 2013
1 parent c12a7c0 commit 7660abd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wrappers/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 7660abd

Please sign in to comment.