@samuelberthe/angular2-materialize
Version:
Angular 2 support for Materialize CSS framework
21 lines (20 loc) • 649 B
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @param {?} type
* @param {?=} detail
* @param {?=} params
* @return {?}
*/
export function CustomEvent(type, detail, params) {
if (detail === void 0) { detail = undefined; }
if (params === void 0) { params = { bubbles: false, cancelable: false }; }
var /** @type {?} */ event = document.createEvent('CustomEvent');
event.initCustomEvent(type, params.bubbles, params.cancelable, detail);
return event;
}
if ("undefined" != typeof window && "Event" in window) {
CustomEvent.prototype = (/** @type {?} */ (window)).Event.prototype;
}