浏览代码

Fixed getOptions bug

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

+ 2 - 2
src/bootstrap-table.js

@@ -1930,9 +1930,9 @@ class BootstrapTable {
 
   getOptions () {
     // deep copy and remove data
-    const options = JSON.parse(JSON.stringify(this.options))
+    const options = $.extend({}, this.options)
     delete options.data
-    return options
+    return $.extend(true, {}, options)
   }
 
   refreshOptions (options) {