UNPKG

jsdom-se

Version:

jsdom fork for silent errors - A JavaScript implementation of the DOM and HTML standards

19 lines (14 loc) 358 B
"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 };