浏览代码

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;
                 }
 
-                value = data[option](_relatedTarget);
+                var args = Array.prototype.slice.call(arguments, 0);
+                value = data[option].apply(data, args);
 
                 if (option === 'destroy') {
                     $this.removeData('bootstrap.table');