浏览代码

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

zhixin 10 年之前
父节点
当前提交
d818cc9e26
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

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