Allow arrays for data attributes, fixes #68
This commit is contained in:
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;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user