mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 18:01:15 +08:00
bug fix #29 bug fix #143 when node.remove() is called, parent property is unset. Also migrated remove tests from containerTests to nodeTests.
This commit is contained in:
@@ -171,6 +171,7 @@ Kinetic.Node = (function() {
|
||||
while(this.children && this.children.length > 0) {
|
||||
this.children[0].remove();
|
||||
}
|
||||
delete this.parent;
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user