Blitter preDestroy will now clear the children List and renderList.

This commit is contained in:
Richard Davey 2018-05-22 16:02:13 +01:00
parent b3ef36ed08
commit d629923e54

View file

@ -274,6 +274,20 @@ var Blitter = new Class({
{ {
this.children.removeAll(); this.children.removeAll();
this.dirty = true; this.dirty = true;
},
/**
* Internal destroy handler, called as part of the destroy process.
*
* @method Phaser.GameObjects.Blitter#preDestroy
* @protected
* @since 3.9.0
*/
preDestroy: function ()
{
this.children.destroy();
this.renderList = [];
} }
}); });