You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2009/03/06 00:33:07 UTC
svn commit: r750683 - /couchdb/trunk/share/server/main.js
Author: jchris
Date: Thu Mar 5 23:33:06 2009
New Revision: 750683
URL: http://svn.apache.org/viewvc?rev=750683&view=rev
Log:
make row_info.prev_key available on 2nd row
Modified:
couchdb/trunk/share/server/main.js
Modified: couchdb/trunk/share/server/main.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/server/main.js?rev=750683&r1=750682&r2=750683&view=diff
==============================================================================
--- couchdb/trunk/share/server/main.js [utf-8] (original)
+++ couchdb/trunk/share/server/main.js [utf-8] Thu Mar 5 23:33:06 2009
@@ -364,10 +364,9 @@
var row_info = row_line[listFun];
runRenderFunction(listFun, [null, row, req, row_info]);
if (row_info.first_key == null) {
- row_info.first_key = row.key;
- } else {
- row_info.prev_key = row.key;
+ row_info.first_key = row.key;
}
+ row_info.prev_key = row.key;
row_info.row_number++;
row_line[listFun] = row_info;
break;