Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor

  • Loading branch information...
commit e18de6f2c2f35c1ec9b43bbae8880afc05acc37d 1 parent 00577aa
Nathan authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/couchdb/database.js
View
5 lib/couchdb/database.js
@@ -80,8 +80,9 @@ Database = {
data: JSON.stringify({ "docs": docs }),
success: function(data, textStatus) {
var doc;
+ var i;
saved = true;
- for (var i=0;i<data.length;++i) {
+ for (i=0;i<data.length;++i) {
doc = docs.filter(function(x) {
return x._id === data[i].id;
});
@@ -238,7 +239,7 @@ Database = {
if (options.query) {
if (typeof options.query === "string") {
- options. q = options.query;
+ options.q = options.query;
} else {
options.q = "";
Please sign in to comment.
Something went wrong with that request. Please try again.