happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
22 lines • 503 B
JavaScript
import Event from '../Event.js';
/**
*
*/
export default class CloseEvent extends Event {
code;
reason;
wasClean;
/**
* Constructor.
*
* @param type Event type.
* @param [eventInit] Event init.
*/
constructor(type, eventInit = null) {
super(type, eventInit);
this.code = eventInit?.code ?? 0;
this.reason = eventInit?.reason ?? '';
this.wasClean = eventInit?.wasClean ?? false;
}
}
//# sourceMappingURL=CloseEvent.js.map