mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
LibWeb: Add the missing EventInit property to Event constructor
This commit is contained in:
parent
071a358ffb
commit
e22d9dc360
2 changed files with 26 additions and 7 deletions
|
@ -1,7 +1,6 @@
|
|||
interface Event {
|
||||
|
||||
// FIXME: second parameter: 'optional EventInit eventInitDict = {}'
|
||||
constructor(DOMString type);
|
||||
constructor(DOMString type, optional EventInit eventInitDict = {});
|
||||
|
||||
readonly attribute DOMString type;
|
||||
readonly attribute EventTarget? target;
|
||||
|
@ -26,3 +25,9 @@ interface Event {
|
|||
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
|
||||
|
||||
};
|
||||
|
||||
dictionary EventInit {
|
||||
boolean bubbles = false;
|
||||
boolean cancelable = false;
|
||||
boolean composed = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue