summaryrefslogtreecommitdiffstats
path: root/dom/webidl/UIEvent.webidl
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-10-04 21:07:48 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-10-04 21:07:48 +0200
commite42166a5bacbd034538b0df9616eefad5c90e26e (patch)
tree83adfd9f58cde798a432371c2dc254a25ab8cf31 /dom/webidl/UIEvent.webidl
parent26975ccf5609c787f088e462a72b24bd1a555126 (diff)
downloadUXP-e42166a5bacbd034538b0df9616eefad5c90e26e.tar
UXP-e42166a5bacbd034538b0df9616eefad5c90e26e.tar.gz
UXP-e42166a5bacbd034538b0df9616eefad5c90e26e.tar.lz
UXP-e42166a5bacbd034538b0df9616eefad5c90e26e.tar.xz
UXP-e42166a5bacbd034538b0df9616eefad5c90e26e.zip
Make all arguments to init*Event() optional except the first
This resolves #810.
Diffstat (limited to 'dom/webidl/UIEvent.webidl')
-rw-r--r--dom/webidl/UIEvent.webidl8
1 files changed, 4 insertions, 4 deletions
diff --git a/dom/webidl/UIEvent.webidl b/dom/webidl/UIEvent.webidl
index 9cc1d0cdf..5be6a443a 100644
--- a/dom/webidl/UIEvent.webidl
+++ b/dom/webidl/UIEvent.webidl
@@ -16,10 +16,10 @@ interface UIEvent : Event
readonly attribute WindowProxy? view;
readonly attribute long detail;
void initUIEvent(DOMString aType,
- boolean aCanBubble,
- boolean aCancelable,
- Window? aView,
- long aDetail);
+ optional boolean aCanBubble = false,
+ optional boolean aCancelable = false,
+ optional Window? aView = null,
+ optional long aDetail = 0);
};
// Additional DOM0 properties.