Skip to content

Commit d629923

Browse files
committed
Blitter preDestroy will now clear the children List and renderList.
1 parent b3ef36e commit d629923

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/gameobjects/blitter/Blitter.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,20 @@ var Blitter = new Class({
274274
{
275275
this.children.removeAll();
276276
this.dirty = true;
277+
},
278+
279+
/**
280+
* Internal destroy handler, called as part of the destroy process.
281+
*
282+
* @method Phaser.GameObjects.Blitter#preDestroy
283+
* @protected
284+
* @since 3.9.0
285+
*/
286+
preDestroy: function ()
287+
{
288+
this.children.destroy();
289+
290+
this.renderList = [];
277291
}
278292

279293
});

0 commit comments

Comments
 (0)