Added Text.destroy and BitmapText.destroy.

This commit is contained in:
photonstorm
2013-10-17 15:40:44 +01:00
parent 4b2ac6c6c6
commit 275fa4641e
6 changed files with 92 additions and 6 deletions
+6 -1
View File
@@ -936,8 +936,13 @@ Phaser.Group.prototype = {
*/
remove: function (child) {
child.events.onRemovedFromGroup.dispatch(child, this);
if (child.events)
{
child.events.onRemovedFromGroup.dispatch(child, this);
}
this._container.removeChild(child);
child.group = null;
},