mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Merge pull request #3436 from orblazer/fix-callback
Fix RemoveCallback call on Group (this callback is not called)
This commit is contained in:
commit
00b0f1b965
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…
Add table
Reference in a new issue