src/js/utils/custom-event.js
function CustomEvent(type, params) {
  const e = document.createEvent('CustomEvent');

  if (params) {
    e.initCustomEvent(type, params.bubbles, params.cancelable, params.detail);
  } else {
    e.initCustomEvent(type, false, false, undefined);
  }

  return e;
}
function CustomEvent(type, params) {
  const e = document.createEvent('CustomEvent');

  if (params) {
    e.initCustomEvent(type, params.bubbles, params.cancelable, params.detail);
  } else {
    e.initCustomEvent(type, false, false, undefined);
  }

  return e;
}
function CustomEvent ( type , params ) { const e = document . createEvent ( 'CustomEvent' ) ; if ( params ) { e . initCustomEvent ( type , params . bubbles , params . cancelable , params . detail ) ; } else { e . initCustomEvent ( type , false , false , undefined ) ; } return e ; }
Lousy polyfill for the Custom Event constructor for IE.
@param {!string} type The type of the event.
@param {?Object} params Additional information for the event.
@return {Event}
@constructor
 /* istanbul ignore next: hard to reproduce on test environment
Lousy polyfill for the Custom Event constructor for IE .