mirror of
https://github.com/konvajs/konva.git
synced 2025-09-21 04:27:56 +08:00
Merge branch 'master' of github.com:mjhasbach/KineticJS into mjhasbach-master
This commit is contained in:
@@ -1027,8 +1027,10 @@
|
||||
* node.moveTo(layer2);
|
||||
*/
|
||||
moveTo: function(newContainer) {
|
||||
Kinetic.Node.prototype.remove.call(this);
|
||||
newContainer.add(this);
|
||||
if (this.getParent() !== newContainer) {
|
||||
this.remove();
|
||||
newContainer.add(this);
|
||||
}
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
|
Reference in New Issue
Block a user