You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
386 B
JavaScript
20 lines
386 B
JavaScript
// https://dom.spec.whatwg.org/#interface-customevent
|
|
|
|
/* c8 ignore start */
|
|
|
|
// One day Node might have CustomEvent too
|
|
|
|
import {Event} from './event.js';
|
|
|
|
/**
|
|
* @implements globalThis.CustomEvent
|
|
*/
|
|
export class CustomEvent extends Event {
|
|
constructor(type, eventInitDict = {}) {
|
|
super(type, eventInitDict);
|
|
this.detail = eventInitDict.detail;
|
|
}
|
|
}
|
|
|
|
/* c8 ignore stop */
|