Skip to content

Commit 4f7f2b8

Browse files
committed
Fix RemoveCallback call on Group
1 parent 28206e8 commit 4f7f2b8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/gameobjects/group/Group.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,11 @@ var Group = new Class({
454454

455455
this.children.delete(child);
456456

457+
if (this.removeCallback)
458+
{
459+
this.removeCallback.call(this, child);
460+
}
461+
457462
if (removeFromScene)
458463
{
459464
this.scene.sys.displayList.remove(child);

0 commit comments

Comments
 (0)