浏览代码

fix(js): fix #4066, getOptions method remove data property

zhixin 7 年之前
父节点
当前提交
2905a60b23
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/bootstrap-table.js

+ 4 - 2
src/bootstrap-table.js

@@ -2756,8 +2756,10 @@
     }
 
     getOptions () {
-      // Deep copy
-      return $.extend(true, {}, this.options)
+      // Deep copy: remove data
+      const options = $.extend({}, this.options)
+      delete options.data
+      return $.extend(true, {}, options)
     }
 
     getSelections () {