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

Commit

Permalink
Merge pull request #123 from Polymer/revert-122-custom-event
Browse files Browse the repository at this point in the history
Revert "CustomEvent shim"
  • Loading branch information
Steve Orvell committed Aug 5, 2014
2 parents 92b9702 + 49be4c3 commit 596e1f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ function bootstrap() {

// CustomEvent shim for IE
if (typeof window.CustomEvent !== 'function') {
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent('CustomEvent');
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
window.CustomEvent = function(inType) {
var e = document.createEvent('HTMLEvents');
e.initEvent(inType, true, true);
return e;
};
window.CustomEvent.prototype = window.Event.prototype;
}

// When loading at readyState complete time (or via flag), boot custom elements
Expand Down

0 comments on commit 596e1f5

Please sign in to comment.