Firefox leaves list.value as-is when set to an invalid option.

Chromium sets it to the empty string.
This commit is contained in:
ccd0 2014-12-14 21:37:29 -08:00
parent 8230156c51
commit 545d93a5fd

View File

@ -425,7 +425,7 @@ QR =
$.rmAll list
$.add list, options
list.value = val
return if list.value
return if list.value is val
# Fix the value if the option disappeared.
list.value = if g.VIEW is 'thread'
g.THREADID