couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r750683 - /couchdb/trunk/share/server/main.js
Date Thu, 05 Mar 2009 23:33:07 GMT
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;



Mime
View raw message