ie-polyfills.js 423 B

1234567891011121314
  1. (function () { // window.CustomEvent for ie >= 9
  2. if ( typeof window.CustomEvent === "function" ) return false;
  3. function CustomEvent ( event, params ) {
  4. params = params || { bubbles: false, cancelable: false, detail: null };
  5. var evt = document.createEvent( 'CustomEvent' );
  6. evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
  7. return evt;
  8. }
  9. window.CustomEvent = CustomEvent;
  10. })();