mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
The UpdateList will now clear out its internal _list
, _pendingRemoval
and _pendingInsertion
lists on shutdown. Before, it would only clear _list
.
This commit is contained in:
parent
0a166f944f
commit
e19c307252
1 changed files with 20 additions and 1 deletions
|
@ -254,7 +254,26 @@ var UpdateList = new Class({
|
|||
*/
|
||||
shutdown: function ()
|
||||
{
|
||||
this.removeAll();
|
||||
var i = this._list.length;
|
||||
|
||||
while (i--)
|
||||
{
|
||||
this._list[i].destroy(true);
|
||||
}
|
||||
|
||||
i = this._pendingRemoval.length;
|
||||
|
||||
while (i--)
|
||||
{
|
||||
this.this._pendingRemoval[i].destroy(true);
|
||||
}
|
||||
|
||||
i = this._pendingInsertion.length;
|
||||
|
||||
while (i--)
|
||||
{
|
||||
this.this._pendingInsertion[i].destroy(true);
|
||||
}
|
||||
|
||||
this._list.length = 0;
|
||||
this._pendingRemoval.length = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue