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 one

Make all parameters to initEvent() / initCustomEvent() optional except the first one.
to match:
- whatwg/dom#417
- whatwg/dom#387
  • Loading branch information
cdumez committed Mar 4, 2017
1 parent dac7c07 commit bce8bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dom/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1>DOM IDL tests</h1>
[Unforgeable] readonly attribute boolean isTrusted;
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 {
Expand All @@ -48,7 +48,7 @@ <h1>DOM IDL tests</h1>
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 bce8bcb

Please sign in to comment.