Browse Source

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

zhixin 7 years ago
parent
commit
2905a60b23
1 changed files with 4 additions and 2 deletions
  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 () {