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:
Richard Davey 2018-09-13 09:29:33 +01:00
parent 0a166f944f
commit e19c307252

View file

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