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

@ -12,12 +12,12 @@ interface ScrollAreaEvent : UIEvent
readonly attribute float height;
void initScrollAreaEvent(DOMString type,
boolean canBubble,
boolean cancelable,
Window? view,
long detail,
float x,
float y,
float width,
float height);
optional boolean canBubble = false,
optional boolean cancelable = false,
optional Window? view = null,
optional long detail = 0,
optional float x = 0,
optional float y = 0,
optional float width = 0,
optional float height = 0);
};