Allow arrays for data attributes, fixes

This commit is contained in:
alexanderd 2013-01-08 23:28:11 +02:00 committed by vitalets
parent 8fce35dc41
commit ed722595ba

@ -94,7 +94,7 @@
getConfigData: function($element) {
var data = {};
$.each($element.data(), function(k, v) {
if(typeof v !== 'object' || (v && typeof v === 'object' && v.constructor === Object)) {
if(typeof v !== 'object' || (v && typeof v === 'object' && (v.constructor === Object || v.constructor === Array))) {
data[k] = v;
}
});