From e42166a5bacbd034538b0df9616eefad5c90e26e Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 4 Oct 2018 21:07:48 +0200 Subject: Make all arguments to init*Event() optional except the first This resolves #810. --- dom/webidl/MutationEvent.webidl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'dom/webidl/MutationEvent.webidl') diff --git a/dom/webidl/MutationEvent.webidl b/dom/webidl/MutationEvent.webidl index 43c7b1cd0..53625b4f9 100644 --- a/dom/webidl/MutationEvent.webidl +++ b/dom/webidl/MutationEvent.webidl @@ -23,11 +23,11 @@ interface MutationEvent : Event [Throws] void initMutationEvent(DOMString type, - boolean canBubble, - boolean cancelable, - Node? relatedNode, - DOMString prevValue, - DOMString newValue, - DOMString attrName, - unsigned short attrChange); + optional boolean canBubble = false, + optional boolean cancelable = false, + optional Node? relatedNode = null, + optional DOMString prevValue = "", + optional DOMString newValue = "", + optional DOMString attrName = "", + optional unsigned short attrChange = 0); }; -- cgit v1.2.3