Bug 1203668 part 2 - Fix dependency on this bug in devtools code. r=bz

This commit is contained in:
Mats Palmgren 2015-12-15 02:51:03 +01:00
parent 44f9e4fcdc
commit c6ff9e9eb2

View File

@ -145,7 +145,7 @@ var SimulatorEditor = {
// Select an available option, or set the "custom" option.
updateSelector(selector, value) {
selector.value = value;
if (selector[selector.selectedIndex].value !== value) {
if (selector.selectedIndex == -1) {
selector.value = "custom";
selector.classList.add("custom");
selector[selector.selectedIndex].textContent = value;