Commit a50ba907 authored by David Stutz's avatar David Stutz

Merge pull request #259 from hermanho/master

Fixed the error "Cannot read property 'is' of undefined " when applying ...
parents a96a95a3 50a32243
...@@ -347,7 +347,7 @@ ...@@ -347,7 +347,7 @@
var options = $('option[value!="' + this.options.selectAllValue + '"]', this.$select); var options = $('option[value!="' + this.options.selectAllValue + '"]', this.$select);
for (var i = 0; i < options.length; i++) { for (var i = 0; i < options.length; i++) {
// Additionally check whether the option is visible within the dropcown. // Additionally check whether the option is visible within the dropcown.
if (options[i].value !== this.options.selectAllValue && this.getInputByValue(options[i].value).is(':visible')) { if (options[i].value !== this.options.selectAllValue && this.getInputByValue(options[i].value) && this.getInputByValue(options[i].value).is(':visible')) {
values.push(options[i].value); values.push(options[i].value);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment