From d35cd0b597a6ce76387349cdc040918246833f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20=C3=96=C3=B6rni?= Date: Wed, 26 Mar 2014 15:55:38 +0200 Subject: [PATCH] Return child entity after creating it. --- src/scene/Entity.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scene/Entity.js b/src/scene/Entity.js index 85918a8..24d8abd 100644 --- a/src/scene/Entity.js +++ b/src/scene/Entity.js @@ -237,6 +237,7 @@ Entity.prototype = { var childEntity = this.parentScene.createEntity(id, changeType); if (childEntity) childEntity.setParent(this, changeType); + return childEntity; }, get local(){