luci-base: ui.js: UISelect: fix check for empty choices
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
5628329434
commit
43a8c12f04
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ var UICheckbox = UIElement.extend({
|
||||||
|
|
||||||
var UISelect = UIElement.extend({
|
var UISelect = UIElement.extend({
|
||||||
__init__: function(value, choices, options) {
|
__init__: function(value, choices, options) {
|
||||||
if (typeof(choices) != 'object')
|
if (!L.isObject(choices))
|
||||||
choices = {};
|
choices = {};
|
||||||
|
|
||||||
if (!Array.isArray(value))
|
if (!Array.isArray(value))
|
||||||
|
|
Loading…
Reference in a new issue