Skip to content

Commit

Permalink
Clarify onstatechange's effect on lifetime.
Browse files Browse the repository at this point in the history
Fixes #134.
  • Loading branch information
cwilso committed Jun 9, 2016
1 parent 4bc44eb commit 1b79aed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ <h2 id="MIDIAccess"><a>MIDIAccess</a> Interface</h2>
MUST be supported by all objects implementing the
<code><a>MIDIAccess</a></code> interface.
</p>
<p class="note">It is important to understand that leaving an <a>EventHandler</a> attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIAccess</a>, you should remove any <a>onstatechange<a> listeners.</p>
<p id="event-midiaccess-statechange">
Whenever a previously unavailable MIDI port becomes available for use, or an existing port changes the state attribute,
the user agent SHOULD run the following steps:</p>
Expand Down Expand Up @@ -442,6 +443,7 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
MUST be supported by all objects implementing
<code><a>MIDIPort</a></code> interface.
</p>
<p class="note">It is important to understand that leaving an <a>EventHandler</a> attached to this object will prevent it from being garbage-collected; when finished using the <a>MIDIPort</a>, you should remove any <a>onstatechange<a> listeners.</p>
</dd>
<dt>Promise&lt;MIDIPort&gt; open()</dt>
<dd>
Expand Down

0 comments on commit 1b79aed

Please sign in to comment.