mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
22 lines
501 B
JavaScript
22 lines
501 B
JavaScript
"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, undefined);
|
|
|
|
module.exports = {
|
|
implementation: CustomEventImpl
|
|
};
|