Skip to content

Commit 88d7455

Browse files
author
Marcos Cáceres
authored
set default for optional dictionary
2 parents 2604127 + 0c79114 commit 88d7455

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>
141141

142142
<pre class="idl">
143143
partial interface Navigator {
144-
[SecureContext] Promise &lt;MIDIAccess> requestMIDIAccess(optional MIDIOptions options);
144+
[SecureContext] Promise &lt;MIDIAccess> requestMIDIAccess(optional MIDIOptions options = {});
145145
};
146146
</pre>
147147
<dl>
@@ -813,8 +813,8 @@ <h2><dfn>MIDIPortConnectionState</dfn> Enum</h2>
813813
<h2 id="MIDIMessageEvent"><dfn>MIDIMessageEvent</dfn> Interface</h2>
814814
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM <a>Event</a> <code>timeStamp</code> attribute is defined as a <a>DOMHighResTimeStamp</a>, and represents the high-resolution time of when the event was received or is to be sent.</p>
815815
<pre class="idl">
816-
[SecureContext, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
817-
interface MIDIMessageEvent: Event {
816+
[SecureContext, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {})]
817+
interface MIDIMessageEvent : Event {
818818
readonly attribute Uint8Array data;
819819
};
820820
</pre>
@@ -868,8 +868,8 @@ <h2 id="MIDIConnectionEvent"><dfn>MIDIConnectionEvent</dfn> Interface</h2>
868868
for new devices infrequently. As such, it is suggested that heavy
869869
reliance on connection events not be used.</p>
870870
<pre class="idl">
871-
[SecureContext, Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
872-
interface MIDIConnectionEvent: Event {
871+
[SecureContext, Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {})]
872+
interface MIDIConnectionEvent : Event {
873873
readonly attribute MIDIPort port;
874874
};
875875
</pre>

0 commit comments

Comments
 (0)