这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 3866ff8

Browse files
committed
Fixes #131.
1 parent f7632e6 commit 3866ff8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

index.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,13 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
528528
href="#idl-def-MIDIPortConnectionState.open">"open"</a></code>
529529
(e.g. open() has already been called on this MIDIPort, or the
530530
port has been implicitly opened), jump to the step labeled
531-
<em>opened</em> below.</p></li>
531+
<em>success</em> below.</p></li>
532532

533533
<li><p>If the device's state is <code><a
534534
href="#idl-def-MIDIPortConnectionState.pending">"pending"</a></code>
535535
(i.e. the connection had been opened and the device was
536536
subsequently disconnected), jump to the step labeled
537-
<em>opened</em> below.</p></li>
537+
<em>success</em> below.</p></li>
538538

539539
<li><p>If the device's state is <code><a
540540
href="#idl-def-MIDIPortDeviceState.disconnected">"disconnected"</a></code>,
@@ -547,15 +547,15 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
547547
handler of the <code><a>MIDIAccess</a></code> and to the
548548
<code><a href="#event-midiport-statechange">statechange</a></code>
549549
handler of the <code><a href="#idl-def-MIDIPort">MIDIPort</a></code>
550-
and jump to the step labeled <em>opened</em> below.</p></li>
550+
and jump to the step labeled <em>success</em> below.</p></li>
551551

552552
<li><p>Attempt to obtain access to the given MIDI device in the
553553
system. If the device is unavailable (e.g. is already in use by another
554554
process and cannot be opened, or is disconnected), jump to the step labeled
555-
<em>failure</em> below. If the device available and access is
555+
<em>failure</em> below. If the device is available and access is
556556
obtained, continue the following steps.</p></li>
557557

558-
<li><p><em><b>success</b></em>: Change the <code>state</code> attribute of the MIDIPort to
558+
<li><p>Change the <code>state</code> attribute of the MIDIPort to
559559
<code>"opened"</code>, and enqueue a new <code><a>MIDIConnectionEvent</a></code>
560560
to the <code><a href="#event-midiaccess-statechange">statechange</a></code>
561561
handler of the <code><a>MIDIAccess</a></code> and to the
@@ -566,16 +566,15 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
566566
that is waiting to be sent, asynchronously begin sending that
567567
data.</p></li>
568568

569-
<li><p><em><b>opened</b></em>: Call <var>resolver</var>'s
569+
<li><p><em><b>success</b></em>: Call <var>resolver</var>'s
570570
<code>accept(value)</code> method with <var>port</var> as
571571
value argument.</p></li>
572572

573573
<li><p>Terminate these steps.</p></li>
574574

575575
<li><p><em><b>failure</b></em>: Let <var>error</var> be a new
576576
<code><a>DOMException</a></code>. This exception's .name should be
577-
<code>"InvalidAccessError"</code> if the port is unavailable,
578-
or <code>"InvalidStateError"</code> if the port is disconnected.</p></li>
577+
<code>"InvalidAccessError"</code> if the port is unavailable.</p></li>
579578

580579
<li><p>Call <var>resolver</var>'s <code>reject(value)</code> method
581580
with <var>error</var> as value argument.</p></li>

0 commit comments

Comments
 (0)