提交 1f137730 编写于 作者: J Johannes Rieken

💄

上级 c5d44858
......@@ -62,12 +62,8 @@ export class BoundModelReferenceCollection {
}
private _cleanup(): void {
let diff = this._length - this._maxLength;
let i: number;
for (i = 0; i < this._data.length && diff > 0; i++) {
diff -= this._data[i].length;
this._data[i].dispose();
i -= 1;
while (this._length > this._maxLength) {
this._data[0].dispose();
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册