Browse Source

fix(js): fix #2879, IE8 bug

zhixin 9 years ago
parent
commit
7f5edc554c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -140,7 +140,7 @@
             return func;
             return func;
         }
         }
         if (typeof func === 'function') {
         if (typeof func === 'function') {
-            return func.apply(self, args);
+            return func.apply(self, args || []);
         }
         }
         if (!func && typeof name === 'string' && sprintf.apply(this, [name].concat(args))) {
         if (!func && typeof name === 'string' && sprintf.apply(this, [name].concat(args))) {
             return sprintf.apply(this, [name].concat(args));
             return sprintf.apply(this, [name].concat(args));