Commit 6ec0ede0 authored by deniss-s's avatar deniss-s

Fixed bug when no options binding is given

parent 17d95cfd
......@@ -16,7 +16,7 @@
update: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
var config = ko.utils.unwrapObservable(valueAccessor());
var selectOptions = allBindingsAccessor().options();
var selectOptions = allBindingsAccessor().options;
var ms = $(element).data('multiselect');
if (!ms) {
......@@ -24,7 +24,7 @@
}
else {
ms.updateOriginalOptions();
if (selectOptions && selectOptions.length !== ms.originalOptions.length) {
if (selectOptions && selectOptions().length !== ms.originalOptions.length) {
$(element).multiselect('rebuild');
}
}
......
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