From ed722595ba1333536bc6c083267e778b10971fbc Mon Sep 17 00:00:00 2001
From: alexanderd <alex_or@abv.bg>
Date: Tue, 8 Jan 2013 23:28:11 +0200
Subject: [PATCH] Allow arrays for data attributes, fixes #68

---
 src/editable-form/editable-form-utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/editable-form/editable-form-utils.js b/src/editable-form/editable-form-utils.js
index c5320d4..6e92ae8 100644
--- a/src/editable-form/editable-form-utils.js
+++ b/src/editable-form/editable-form-utils.js
@@ -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;
                 }
             });