浏览代码

Update bootstrap-table-flatJSON.js

文翼 10 年之前
父节点
当前提交
8aa7c8b8e7
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/extensions/flatJSON/bootstrap-table-flatJSON.js

+ 6 - 6
src/extensions/flatJSON/bootstrap-table-flatJSON.js

@@ -88,15 +88,15 @@
 
         flatHelper: function (data) {
             var flatArray = [],
-				arrayHelper = [];
-			if (!$.isArray(data)) {
-				arrayHelper.push(data);
-				data = arrayHelper;
-			}
+                arrayHelper = [];
+            if (!$.isArray(data)) {
+                arrayHelper.push(data);
+                data = arrayHelper;
+            }
             $.each(data, function (i, element) {
                 flatArray.push(sd.flat(element));
             });
             return flatArray;
         }
     };
-})(jQuery);
+})(jQuery);