From f17042926904b924980b6921ec28b347551822fb Mon Sep 17 00:00:00 2001 From: David Stutz Date: Fri, 4 Jul 2014 21:58:26 +0200 Subject: [PATCH] #329. --- js/bootstrap-multiselect.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-multiselect.js b/js/bootstrap-multiselect.js index 1fde63fd..f583e5ff 100644 --- a/js/bootstrap-multiselect.js +++ b/js/bootstrap-multiselect.js @@ -894,7 +894,7 @@ var optionDOM = ""; var groupCounter = 0; - dataprovider.forEach(function (option) { + $.each(dataprovider, function (option) { if ($.isArray(option.children)) { groupCounter++; optionDOM += ''; @@ -904,7 +904,8 @@ }); optionDOM += ''; - } else { + } + else { optionDOM += ''; } });