node_modules/@angular/elements/esm2015/src/utils.js
/**
 * Create a `CustomEvent` (even on browsers where `CustomEvent` is not a constructor).
 * @param {?} doc
 * @param {?} name
 * @param {?} detail
 * @return {?}
 */
Create a `CustomEvent` (even on browsers where `CustomEvent` is not a constructor).
Create a ` CustomEvent ` ( even on browsers where ` CustomEvent ` is not a constructor ) .
function createCustomEvent(doc, name, detail) {
    const bubbles = false;
    const cancelable = false;
    if (typeof CustomEvent !== 'function') {
        const event = doc.createEvent('CustomEvent');
        event.initCustomEvent(name, bubbles, cancelable, detail);
        return event;
    }
    return new CustomEvent(name, { bubbles, cancelable, detail });
}
function createCustomEvent ( doc , name , detail ) { const bubbles = false ; const cancelable = false ; if ( typeof CustomEvent !== 'function' ) { const event = doc . createEvent ( 'CustomEvent' ) ; event . initCustomEvent ( name , bubbles , cancelable , detail ) ; return event ; } return new CustomEvent ( name , { bubbles , cancelable , detail } ) ; }
Create a `CustomEvent` (even on browsers where `CustomEvent` is not a constructor).
Create a ` CustomEvent ` ( even on browsers where ` CustomEvent ` is not a constructor ) .
/** @type {?} */ /** @type {?} */ // On IE9-11, `CustomEvent` is not a constructor. /** @type {?} */