summaryrefslogtreecommitdiff
path: root/share/www/script/couch.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-06-04 15:44:17 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-06-04 15:44:17 +0000
commit03800e092938c950a394e23e4dbb57b7a723778d (patch)
treedd37ba34b6703673b875fc11b8ca4c13014b226f /share/www/script/couch.js
parentf6b5608dd05db1f10faaa6b426659dfcb84e22e4 (diff)
Add tests for bulk_docs, to verify that COUCHDB-16 has been fixed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663239 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r--share/www/script/couch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js
index 5fe43fb5..861fd070 100644
--- a/share/www/script/couch.js
+++ b/share/www/script/couch.js
@@ -87,7 +87,7 @@ function CouchDB(name) {
var result = JSON.parse(req.responseText);
if (req.status != 201)
throw result;
- for(var i in docs) {
+ for (var i = 0; i < docs.length; i++) {
docs[i]._id = result.new_revs[i].id;
docs[i]._rev = result.new_revs[i].rev;
}