mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 03:02:49 +00:00
19 lines
358 B
JavaScript
19 lines
358 B
JavaScript
"use strict";
|
|
|
|
const EventImpl = require("./Event-impl").implementation;
|
|
|
|
class CustomEventImpl extends EventImpl {
|
|
initCustomEvent(type, bubbles, cancelable, detail) {
|
|
if (this._dispatchFlag) {
|
|
return;
|
|
}
|
|
|
|
this.initEvent(type, bubbles, cancelable);
|
|
this.detail = detail;
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
implementation: CustomEventImpl
|
|
};
|