Skip to content

Commit

Permalink
Return child entity after creating it.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaver committed Mar 26, 2014
1 parent 80efc99 commit d35cd0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scene/Entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ Entity.prototype = {
var childEntity = this.parentScene.createEntity(id, changeType);
if (childEntity)
childEntity.setParent(this, changeType);
return childEntity;
},

get local(){
Expand Down

0 comments on commit d35cd0b

Please sign in to comment.