mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
Kinetic.Container.add() is now chainable when its child argument has a parent
This commit is contained in:
@@ -100,7 +100,7 @@
|
|||||||
}
|
}
|
||||||
if (child.getParent()) {
|
if (child.getParent()) {
|
||||||
child.moveTo(this);
|
child.moveTo(this);
|
||||||
return;
|
return this;
|
||||||
}
|
}
|
||||||
var children = this.children;
|
var children = this.children;
|
||||||
this._validateAdd(child);
|
this._validateAdd(child);
|
||||||
|
Reference in New Issue
Block a user