1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

LibWeb: Add the missing CustomEvent IDL constructor

This commit is contained in:
Idan Horowitz 2021-09-29 20:32:29 +03:00 committed by Andreas Kling
parent e04f3c713c
commit 3b9e8ec597
3 changed files with 28 additions and 14 deletions

View file

@ -1,8 +1,14 @@
#import <Event.idl>
[Exposed=(Window,Worker), CustomVisit]
interface CustomEvent : Event {
// FIXME: constructor(DOMString type, optional CustomEventInit eventInitDict = {});
constructor(DOMString type, optional CustomEventInit eventInitDict = {});
readonly attribute any detail;
undefined initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null);
};
dictionary CustomEventInit : EventInit {
any detail = null;
};