From c6d91e81380ef715fba219380bd4af77ef9fbe5d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 17 Nov 2009 23:42:37 -0700 Subject: [PATCH] Correctly handle rownum return --- imp/js/ViewPort.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index c00896547..2f0fb8cce 100644 --- a/imp/js/ViewPort.js +++ b/imp/js/ViewPort.js @@ -775,7 +775,7 @@ var ViewPort = Class.create({ // TODO: Flag for no _fetchBuffer()? if (this.view == r.view) { - this._updateContent(Object.isUndefined(offset) ? (r.rownum ? Number(r.rownum) - 1 : this.currentOffset()) : offset); + this._updateContent(Object.isUndefined(r.rownum) ? (Object.isUndefined(offset) ? this.currentOffset() : offset) : Number(r.rownum) - 1); } else if (r.rownum) { // We loaded in the background. If rownumber information was // provided, we need to save this or else we will position the -- 2.11.0