Add optional annotations for initEvent method of Event interface

This commit is contained in:
_rika 2019-02-20 20:01:38 +08:00
parent cc8a9fa928
commit fd2341bc78
3 changed files with 1 additions and 7 deletions

View file

@ -35,7 +35,7 @@ interface Event {
[Constant]
readonly attribute DOMTimeStamp timeStamp;
void initEvent(DOMString type, boolean bubbles, boolean cancelable);
void initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
};
dictionary EventInit {