ソースを参照

Changed method call to apply in $.fn.bootstrapTable

Current approach only allowed for singular arg passed to
method, new approach will allow for any amount.
jtrumbull 10 年 前
コミット
c3f5c605e0
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

@@ -2269,7 +2269,8 @@
                     return;
                     return;
                 }
                 }
 
 
-                value = data[option](_relatedTarget);
+                var args = Array.prototype.slice.call(arguments, 0);
+                value = data[option].apply(data, args);
 
 
                 if (option === 'destroy') {
                 if (option === 'destroy') {
                     $this.removeData('bootstrap.table');
                     $this.removeData('bootstrap.table');