Browse Source

Fix pr comments

djhvscf 5 years ago
parent
commit
de1e783f34
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

@@ -1862,10 +1862,10 @@ class BootstrapTable {
 
   trigger (_name, ...args) {
     const name = `${_name}.bs.table`
-    this.options[BootstrapTable.EVENTS[name]]([...args, this])
+    this.options[BootstrapTable.EVENTS[name]](...[...args, this])
     this.$el.trigger($.Event(name, { sender: this }), args)
 
-    this.options.onAll(name, [...args, this])
+    this.options.onAll(name, ...[...args, this])
     this.$el.trigger($.Event('all.bs.table', { sender: this }), [name, args])
   }