changed the observe functionality

This commit is contained in:
Kevin Jahns
2016-04-25 16:32:45 +02:00
parent 71bf6438e1
commit 6b8ce0ab4f
5 changed files with 32 additions and 17 deletions

View File

@@ -245,11 +245,12 @@ module.exports = function (Y/* :any */) {
}
// is a child of a map struct.
// Then also make sure that only the most left element is not deleted
// We do not call the type in this case (this is what the third parameter is for)
if (op.right != null) {
yield* this.deleteOperation(op.right, 1)
yield* this.deleteOperation(op.right, 1, true)
}
if (op.left != null) {
yield* this.deleteOperation(op.id, 1)
yield* this.deleteOperation(op.id, 1, true)
}
} else {
if (right == null || left == null) {