Browse Source

Merge pull request #4473 from wenzhixin/fix/get-options

Fixed getOptions bug
Dustin Utecht 6 years ago
parent
commit
d60674e4b3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

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