mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 00:47:29 +00:00
Fix RemoveCallback call on Group
This commit is contained in:
parent
28206e872f
commit
4f7f2b8981
1 changed files with 5 additions and 0 deletions
|
@ -454,6 +454,11 @@ var Group = new Class({
|
|||
|
||||
this.children.delete(child);
|
||||
|
||||
if (this.removeCallback)
|
||||
{
|
||||
this.removeCallback.call(this, child);
|
||||
}
|
||||
|
||||
if (removeFromScene)
|
||||
{
|
||||
this.scene.sys.displayList.remove(child);
|
||||
|
|
Loading…
Reference in a new issue