Commit 3e96c7e0 authored by goncons's avatar goncons

Little correction to dataprovider.

There is a little correction to the method dataprovider, the parameters for the callback function are index, value.  Probably the problem is that in the forEach method of an array this two parameters are inverted.
parent f1704292
......@@ -894,7 +894,7 @@
var optionDOM = "";
var groupCounter = 0;
$.each(dataprovider, function (option) {
$.each(dataprovider, function (index, option) {
if ($.isArray(option.children)) {
groupCounter++;
optionDOM += '<optgroup label="' + (option.title || 'Group ' + groupCounter) + '">';
......
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