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

Commit

Permalink
Oops, re-merge: #122
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Aug 5, 2014
1 parent 596e1f5 commit f497c36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ function bootstrap() {

// CustomEvent shim for IE
if (typeof window.CustomEvent !== 'function') {
window.CustomEvent = function(inType) {
var e = document.createEvent('HTMLEvents');
e.initEvent(inType, true, true);
window.CustomEvent = function(inType, params) {
params = params || {};
var e = document.createEvent('CustomEvent');
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
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 f497c36

Please sign in to comment.