mirror of
https://github.com/wassname/phaser.git
synced 2026-07-11 00:40:20 +08:00
Added Text.destroy and BitmapText.destroy.
This commit is contained in:
+6
-1
@@ -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;
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user