summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/CustomEvent.idl
blob: 65bfc43ca755a734527ea33b567f6fd11e09bf81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#import <DOM/Event.idl>

[Exposed=(Window,Worker), CustomVisit]
interface CustomEvent : Event {
    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;
};