### Description In `app-pouchdb-document` there's a fragment where clearly call to `this.reset();` is out of scope: ``` destroy: function() { this.set('data._deleted', true); return this.transactionsComplete.then(function() { return this.reset(); }); }, ``` This causes calls to this function to always fail. Though, the item is deleted from the store. ### Expected outcome Not fail :) ### Actual outcome Promise rejection due the error. ### Live Demo https://jsbin.com/wiroqef/4/edit?html,js,output ### Steps to reproduce See demo. ### Browsers Affected Browser independent. It will always fail.
Description
In
app-pouchdb-documentthere's a fragment where clearly call tothis.reset();is out of scope:This causes calls to this function to always fail. Though, the item is deleted from the store.
Expected outcome
Not fail :)
Actual outcome
Promise rejection due the error.
Live Demo
https://jsbin.com/wiroqef/4/edit?html,js,output
Steps to reproduce
See demo.
Browsers Affected
Browser independent. It will always fail.