Allow arrays for data attributes, fixes #68
This commit is contained in:
@ -94,7 +94,7 @@
|
|||||||
getConfigData: function($element) {
|
getConfigData: function($element) {
|
||||||
var data = {};
|
var data = {};
|
||||||
$.each($element.data(), function(k, v) {
|
$.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;
|
data[k] = v;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user