You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
490 B
21 lines
490 B
"use strict";
|
|
|
|
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);
|
|
|
|
module.exports = {
|
|
implementation: CustomEventImpl
|
|
};
|
|
|