Commit bf53abe6 authored by David Stutz's avatar David Stutz

Merge pull request #453 from thienedits/patch-2

Change dataprovider tags variable into an array.
parents d9bd4cdf 74062438
......@@ -1103,7 +1103,7 @@
dataprovider: function(dataprovider) {
var optionDOM = "";
var groupCounter = 0;
var tags = $(''); // create empty jQuery array
var tags = []; // create empty array
$.each(dataprovider, function (index, option) {
var tag;
......@@ -1130,9 +1130,10 @@
title: option.title,
selected: !!option.selected
});
tags.push(tag);
}
tags = tags.add(tag);
});
this.$select.empty().append(tags);
......
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