summaryrefslogtreecommitdiffstats
path: root/dom/webidl/DragEvent.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/DragEvent.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/DragEvent.webidl')
-rw-r--r--dom/webidl/DragEvent.webidl30
1 files changed, 15 insertions, 15 deletions
diff --git a/dom/webidl/DragEvent.webidl b/dom/webidl/DragEvent.webidl
index 2cc173d5c..806177790 100644
--- a/dom/webidl/DragEvent.webidl
+++ b/dom/webidl/DragEvent.webidl
@@ -10,21 +10,21 @@ interface DragEvent : MouseEvent
readonly attribute DataTransfer? dataTransfer;
void initDragEvent(DOMString type,
- boolean canBubble,
- boolean cancelable,
- Window? aView,
- long aDetail,
- long aScreenX,
- long aScreenY,
- long aClientX,
- long aClientY,
- boolean aCtrlKey,
- boolean aAltKey,
- boolean aShiftKey,
- boolean aMetaKey,
- unsigned short aButton,
- EventTarget? aRelatedTarget,
- DataTransfer? aDataTransfer);
+ optional boolean canBubble = false,
+ optional boolean cancelable = false,
+ optional Window? aView = null,
+ optional long aDetail = 0,
+ optional long aScreenX = 0,
+ optional long aScreenY = 0,
+ optional long aClientX = 0,
+ optional long aClientY = 0,
+ optional boolean aCtrlKey = false,
+ optional boolean aAltKey = false,
+ optional boolean aShiftKey = false,
+ optional boolean aMetaKey = false,
+ optional unsigned short aButton = 0,
+ optional EventTarget? aRelatedTarget = null,
+ optional DataTransfer? aDataTransfer = null);
};
dictionary DragEventInit : MouseEventInit