Browse Source

Fix #1231: getRowByUniqueId return null when the result is empty.

zhixin 10 years ago
parent
commit
d818cc9e26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2080,7 +2080,7 @@
     BootstrapTable.prototype.getRowByUniqueId = function (id) {
     BootstrapTable.prototype.getRowByUniqueId = function (id) {
         var uniqueId = this.options.uniqueId,
         var uniqueId = this.options.uniqueId,
             len = this.options.data.length,
             len = this.options.data.length,
-            dataRow = undefined,
+            dataRow = null,
             i, row;
             i, row;
 
 
         for (i = len - 1; i >= 0; i--) {
         for (i = len - 1; i >= 0; i--) {