Skip to content

Commit 1594149

Browse files
committed
Fix up inputs enumeration example
(key and port parameters were swapped)
1 parent cb450a0 commit 1594149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ <h3 id="MIDIInputMap"><a>MIDIInputMap</a> Interface</h3>
256256
var numberOfMIDIInputs = inputs.size;
257257

258258
// add each of the ports to a &lt;select&gt; box
259-
inputs.forEach( function( key, port ) {
259+
inputs.forEach( function( port, key ) {
260260
var opt = document.createElement("option");
261261
opt.text = port.name;
262262
document.getElementById("inputportselector").add(opt);

0 commit comments

Comments
 (0)