fixed bug in delete operations
This commit is contained in:
parent
29f3f3f722
commit
0980609cc9
@ -93,7 +93,10 @@ Y.IndexedDB = (function () {
|
|||||||
operationsToAdd = []
|
operationsToAdd = []
|
||||||
for (var i in add) {
|
for (var i in add) {
|
||||||
// don't call the localStorage event twice..
|
// 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)
|
yield* this.store.operationAdded(this, op, true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user