From 4f7f2b89812062e5564e616ceece73199ad43d6f Mon Sep 17 00:00:00 2001 From: orblazer Date: Wed, 21 Mar 2018 00:17:44 +0100 Subject: [PATCH] Fix RemoveCallback call on Group --- src/gameobjects/group/Group.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gameobjects/group/Group.js b/src/gameobjects/group/Group.js index 2f96718d7..24bf2b586 100644 --- a/src/gameobjects/group/Group.js +++ b/src/gameobjects/group/Group.js @@ -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);