jsdom
Version:
A JavaScript implementation of many web standards
22 lines (16 loc) • 501 B
JavaScript
const EventImpl = require("./Event-impl").implementation;
const CustomEventInit = require("../generated/CustomEventInit");
class CustomEventImpl extends EventImpl {
initCustomEvent(type, bubbles, cancelable, detail) {
if (this._dispatchFlag) {
return;
}
this.initEvent(type, bubbles, cancelable);
this.detail = detail;
}
}
CustomEventImpl.defaultInit = CustomEventInit.convert(undefined, undefined);
module.exports = {
implementation: CustomEventImpl
};
;