Make all arguments to init*Event() optional except the first

This resolves #810.
This commit is contained in:
wolfbeast 2018-10-04 21:07:48 +02:00 committed by Roy Tam
commit faa1c5c0af
20 changed files with 175 additions and 169 deletions

View file

@ -15,13 +15,13 @@ interface XULCommandEvent : UIEvent
readonly attribute Event? sourceEvent;
void initCommandEvent(DOMString type,
boolean canBubble,
boolean cancelable,
Window? view,
long detail,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
Event? sourceEvent);
optional boolean canBubble = false,
optional boolean cancelable = false,
optional Window? view = null,
optional long detail = 0,
optional boolean ctrlKey = false,
optional boolean altKey = false,
optional boolean shiftKey = false,
optional boolean metaKey = false,
optional Event? sourceEvent = null);
};