Browse Source

Issue related to flatJSON extension

Dennis Hernández 10 years ago
parent
commit
bde1c1bb18
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/extensions/flatJSON/bootstrap-table-flatJSON.js

+ 3 - 3
src/extensions/flatJSON/bootstrap-table-flatJSON.js

@@ -40,9 +40,9 @@
     });
 
     var BootstrapTable = $.fn.bootstrapTable.Constructor,
-        _initData = BootstrapTable.prototype.initData;
+        _initTable = BootstrapTable.prototype.initTable;
 
-    BootstrapTable.prototype.initData = function () {
+    BootstrapTable.prototype.initTable = function () {
 
         //If the flat is true
         if (this.options.flat) {
@@ -52,7 +52,7 @@
             this.data = this.options.data;
         }
 
-        _initData.apply(this, Array.prototype.slice.apply(arguments));
+        _initTable.apply(this, Array.prototype.slice.apply(arguments));
     };
 
     //Main functions