From 1594149b53daf610d3dfa02f5120b28eaf4984a5 Mon Sep 17 00:00:00 2001 From: Nathan Vander Wilt Date: Wed, 28 Oct 2015 21:51:23 -0700 Subject: [PATCH] Fix up inputs enumeration example (key and port parameters were swapped) --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 6cf9988..b833c30 100644 --- a/index.html +++ b/index.html @@ -256,7 +256,7 @@

MIDIInputMap Interface

var numberOfMIDIInputs = inputs.size; // add each of the ports to a <select> box - inputs.forEach( function( key, port ) { + inputs.forEach( function( port, key ) { var opt = document.createElement("option"); opt.text = port.name; document.getElementById("inputportselector").add(opt);