add comment

This commit is contained in:
Лаврёнов Антон
2014-08-19 19:48:20 +08:00
parent bcadceafbd
commit f326eee9da

View File

@@ -1027,6 +1027,7 @@
* node.moveTo(layer2);
*/
moveTo: function(newContainer) {
// do nothing if new container is already parent
if (this.getParent() !== newContainer) {
this.remove();
newContainer.add(this);