ソースを参照

fix pr comments

djhvscf 5 年 前
コミット
a379e5879f
1 ファイル変更2 行追加2 行削除
  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])
   }