implemented disconnect/reconnect in webrtc connector. adapted the example gc also collects child elements (needs improvements)

This commit is contained in:
Kevin Jahns
2015-10-13 14:50:54 +02:00
parent 51e20fb9c7
commit d6e1cd42a2
7 changed files with 124 additions and 57 deletions

View File

@@ -194,12 +194,20 @@ var Struct = {
yield* this.setOperation(right)
}
// notify parent
// update parents .map/start/end properties
if (op.parentSub != null) {
if (left == null) {
parent.map[op.parentSub] = op.id
yield* this.setOperation(parent)
}
// is a child of a map struct.
// Then also make sure that only the most left element is not deleted
if (op.right != null) {
yield* this.deleteOperation(op.right, true)
}
if (op.left != null) {
yield* this.deleteOperation(op.id, true)
}
} else {
if (right == null || left == null) {
if (right == null) {