Fix setting the selectedIndex of dropdown lists in test-ui.js and perf-ui.js.

This commit is contained in:
John-David Dalton
2014-01-27 21:49:38 -08:00
parent 1b79448ac2
commit 9f0993f29b
2 changed files with 6 additions and 6 deletions

View File

@@ -87,6 +87,9 @@
otherList = span2.lastChild,
toolbar = document.getElementById('perf-toolbar');
toolbar.appendChild(span2);
toolbar.appendChild(span1);
buildList.selectedIndex = (function() {
switch (build) {
case 'lodash-compat': return 0;
@@ -117,9 +120,6 @@
return -1;
}());
toolbar.appendChild(span2);
toolbar.appendChild(span1);
addListener(buildList, 'change', eventHandler);
addListener(otherList, 'change', eventHandler);
});