Merge pull request #3436 from orblazer/fix-callback

Fix RemoveCallback call on Group (this callback is not called)
This commit is contained in:
Richard Davey 2018-03-21 00:31:15 +00:00 committed by GitHub
commit 00b0f1b965
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);