Created
June 25, 2014 15:04
-
-
Save tlvince/f5980e3b71f2544d0d93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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