diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-03-05 23:33:06 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-03-05 23:33:06 +0000 |
commit | 620db891b57c8a429a7f11f23eed302e5479f250 (patch) | |
tree | 8463782eb7430abdb456cfdc4de2eb35f4319ce2 /share | |
parent | e8ca9805f1ea6fb13cb7255ea90b127ac3b8201f (diff) |
make row_info.prev_key available on 2nd row
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750683 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r-- | share/server/main.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/server/main.js b/share/server/main.js index 34b0a353..81180678 100644 --- a/share/server/main.js +++ b/share/server/main.js @@ -364,10 +364,9 @@ while (cmd = eval(readline())) { 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; |