diff --git a/.vscode/launch.json b/.vscode/launch.json index ad0153dd..f5f0d3e1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,7 +7,7 @@ "request": "launch", "program": "node_modules/gulp/bin/gulp.js", "stopOnEntry": false, - "args": ["dev:examples"], + "args": ["test"], "cwd": ".", "runtimeExecutable": null, "runtimeArgs": [ diff --git a/src/Utils.js b/src/Utils.js index 08abdd2a..03554f64 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -340,14 +340,7 @@ module.exports = function (Y /* : any*/) { } } } - for (i = 0; i < this.writeBuffer.length; i++) { - r = this.writeBuffer[i] - if (r.id[1] === id[1] && r.id[0] === id[0]) { - this.writeBuffer[i] = { - id: [null, null] - } - } - } + yield* this.flush() yield* super.delete(id) } * findWithLowerBound () {