Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Awesome idea to use a reserved word as a function call

  • Loading branch information...
commit aa37501f4512e7c9cdb935bc1dc2f71b9f44a464 1 parent 8ed5514
Dale  Harvey daleharvey authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/pouch.js
6 src/pouch.js
View
@@ -268,7 +268,7 @@
error: true,
message: 'Invalid rev'
});
- return cursor.continue();
+ return cursor['continue']();
}
var dataReq = txn.objectStore(BY_SEQ_STORE).put(docInfo.data);
dataReq.onsuccess = function(e) {
@@ -279,7 +279,7 @@
id : docInfo.metadata.id,
rev : docInfo.metadata.rev
});
- cursor.continue();
+ return cursor['continue']();
};
};
} else {
@@ -339,7 +339,7 @@
doc: event.value
};
opts.onChange(c);
- cursor.continue();
+ cursor['continue']();
};
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.