浏览代码

Merge pull request #39 from wenzhixin/master

Update my repo
Dennis Hernández 10 年之前
父节点
当前提交
6713d5becf
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/bootstrap-table.js

+ 2 - 4
src/bootstrap-table.js

@@ -1988,15 +1988,13 @@
         if (typeof value === 'number') {
             $tbody.scrollTop(value);
         }
-        // Fix #786 bug getScrollPosition
-        if (value === undefined) {
+        if (typeof value === 'undefined') {
             return $tbody.scrollTop();
         }
     };
 
     BootstrapTable.prototype.getScrollPosition = function () {
-        // Fix #786 bug getScrollPosition
-        return this.scrollTo(undefined);
+        return this.scrollTo();
     }
 
     BootstrapTable.prototype.selectPage = function (page) {