Skip to content

Commit

Permalink
Make all parameters to initEvent() / initCustomEvent() optional excep…
Browse files Browse the repository at this point in the history
…t the first

Make all parameters to initEvent() / initCustomEvent() optional except the first.
This aligns the specification with WebKit and gets it closer to Blink.

This closes issue #387.
  • Loading branch information
cdumez committed Mar 4, 2017
1 parent 26cfadd commit 544a66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ interface Event {
[Unforgeable] readonly attribute boolean isTrusted;
readonly attribute DOMTimeStamp timeStamp;

void initEvent(DOMString type, boolean bubbles, boolean cancelable); // historical
void initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // historical
};

dictionary EventInit {
Expand Down Expand Up @@ -817,7 +817,7 @@ incapable of setting {{Event/composed}}. It has to be supported for legacy conte
interface CustomEvent : Event {
readonly attribute any detail;

void initCustomEvent(DOMString type, boolean bubbles, boolean cancelable, any detail);
void initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null);
};

dictionary CustomEventInit : EventInit {
Expand Down

0 comments on commit 544a66c

Please sign in to comment.