Skip to content

Instantly share code, notes, and snippets.

@tlvince
Created June 25, 2014 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlvince/f5980e3b71f2544d0d93 to your computer and use it in GitHub Desktop.
Save tlvince/f5980e3b71f2544d0d93 to your computer and use it in GitHub Desktop.
var getID = function(result) {
return result.id;
};
var db = new PouchDB('test');
db.post({things: [1,2,3]})
.then(getID)
.then(db.get) // <-
.catch(function(reason) {
console.log(reason);
});
// =>
// Error {
// line: 6498
// message: "'undefined' is not an object (evaluating 'this.taskqueue.isReady')"
// ...
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment