mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
refined global object temp nodes has removal when removing nodes from container. Also added another unit test
This commit is contained in:
@@ -34,8 +34,10 @@ Kinetic.Container.prototype = {
|
||||
_remove: function(child) {
|
||||
if(this.children[child.index]._id == child._id) {
|
||||
var stage = this.getStage();
|
||||
stage._removeId(child);
|
||||
stage._removeName(child);
|
||||
if(stage !== undefined) {
|
||||
stage._removeId(child);
|
||||
stage._removeName(child);
|
||||
}
|
||||
|
||||
var go = Kinetic.GlobalObject;
|
||||
for(var n = 0; n < go.tempNodes.length; n++) {
|
||||
|
Reference in New Issue
Block a user