mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Fix setting the selectedIndex of dropdown lists in test-ui.js and perf-ui.js.
This commit is contained in:
@@ -87,6 +87,9 @@
|
|||||||
otherList = span2.lastChild,
|
otherList = span2.lastChild,
|
||||||
toolbar = document.getElementById('perf-toolbar');
|
toolbar = document.getElementById('perf-toolbar');
|
||||||
|
|
||||||
|
toolbar.appendChild(span2);
|
||||||
|
toolbar.appendChild(span1);
|
||||||
|
|
||||||
buildList.selectedIndex = (function() {
|
buildList.selectedIndex = (function() {
|
||||||
switch (build) {
|
switch (build) {
|
||||||
case 'lodash-compat': return 0;
|
case 'lodash-compat': return 0;
|
||||||
@@ -117,9 +120,6 @@
|
|||||||
return -1;
|
return -1;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
toolbar.appendChild(span2);
|
|
||||||
toolbar.appendChild(span1);
|
|
||||||
|
|
||||||
addListener(buildList, 'change', eventHandler);
|
addListener(buildList, 'change', eventHandler);
|
||||||
addListener(otherList, 'change', eventHandler);
|
addListener(otherList, 'change', eventHandler);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -59,6 +59,9 @@
|
|||||||
setTimeout(init, 15);
|
setTimeout(init, 15);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
toolbar.appendChild(span1);
|
||||||
|
toolbar.appendChild(span2);
|
||||||
|
|
||||||
buildList.selectedIndex = (function() {
|
buildList.selectedIndex = (function() {
|
||||||
switch (build) {
|
switch (build) {
|
||||||
case 'lodash-compat': return 1;
|
case 'lodash-compat': return 1;
|
||||||
@@ -86,9 +89,6 @@
|
|||||||
return -1;
|
return -1;
|
||||||
}());
|
}());
|
||||||
|
|
||||||
toolbar.appendChild(span1);
|
|
||||||
toolbar.appendChild(span2);
|
|
||||||
|
|
||||||
addListener(buildList, 'change', eventHandler);
|
addListener(buildList, 'change', eventHandler);
|
||||||
addListener(loaderList, 'change', eventHandler);
|
addListener(loaderList, 'change', eventHandler);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user