提交 94f79885 编写于 作者: G gusreiber

check select.options for 1st item

上级 ea17a887
......@@ -44,7 +44,7 @@ Behaviour.specify("SELECT.select", 'select', 1000, function(e) {
function hasChanged(selectEl, originalValue) {
// seems like a race condition allows this to fire before the 'selectEl' is defined. If that happens, exit..
if(!selectEl || !selectEl.options || !selectEl[0])
if(!selectEl || !selectEl.options || !selectEl.options[0])
return false;
var firstValue = selectEl.options[0].value;
var selectedValue = selectEl.value;
......@@ -82,4 +82,4 @@ Behaviour.specify("SELECT.select", 'select', 1000, function(e) {
}
});
});
});
\ No newline at end of file
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册