mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Blitter preDestroy will now clear the children List and renderList.
This commit is contained in:
parent
b3ef36ed08
commit
d629923e54
1 changed files with 14 additions and 0 deletions
|
@ -274,6 +274,20 @@ var Blitter = new Class({
|
|||
{
|
||||
this.children.removeAll();
|
||||
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 = [];
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue