fixed bug in delete operations

This commit is contained in:
Kevin Jahns 2015-10-19 11:27:49 +02:00
parent 29f3f3f722
commit 0980609cc9

View File

@ -93,7 +93,10 @@ Y.IndexedDB = (function () {
operationsToAdd = []
for (var i in add) {
// don't call the localStorage event twice..
var op = yield* this.getOperation(JSON.parse(add[i]).id)
var op = JSON.parse(add[i])
if (op.struct !== 'Delete') {
op = yield* this.getOperation(op.id)
}
yield* this.store.operationAdded(this, op, true)
}
})