10
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2026-04-12 09:44:19 +00:00
setup-helm/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js
github-actions[bot] a517f2ff65
Add node modules and new code for release (#57)
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
2022-01-26 17:16:26 -05:00

21 lines
490 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);
module.exports = {
implementation: CustomEventImpl
};