[ts] Fix Pool.freeAll item insertion. Closes 1680.

This commit is contained in:
badlogic 2020-06-03 13:22:42 +02:00
parent ebd0bea6ed
commit bb60264572
13 changed files with 13 additions and 26 deletions

View File

@ -7506,9 +7506,7 @@ var spine;
};
Pool.prototype.freeAll = function (items) {
for (var i = 0; i < items.length; i++) {
if (items[i].reset)
items[i].reset();
this.items[i] = items[i];
this.free(items[i]);
}
};
Pool.prototype.clear = function () {

File diff suppressed because one or more lines are too long

View File

@ -7506,9 +7506,7 @@ var spine;
};
Pool.prototype.freeAll = function (items) {
for (var i = 0; i < items.length; i++) {
if (items[i].reset)
items[i].reset();
this.items[i] = items[i];
this.free(items[i]);
}
};
Pool.prototype.clear = function () {

File diff suppressed because one or more lines are too long

View File

@ -7506,9 +7506,7 @@ var spine;
};
Pool.prototype.freeAll = function (items) {
for (var i = 0; i < items.length; i++) {
if (items[i].reset)
items[i].reset();
this.items[i] = items[i];
this.free(items[i]);
}
};
Pool.prototype.clear = function () {

File diff suppressed because one or more lines are too long

View File

@ -7506,9 +7506,7 @@ var spine;
};
Pool.prototype.freeAll = function (items) {
for (var i = 0; i < items.length; i++) {
if (items[i].reset)
items[i].reset();
this.items[i] = items[i];
this.free(items[i]);
}
};
Pool.prototype.clear = function () {

File diff suppressed because one or more lines are too long

View File

@ -7506,9 +7506,7 @@ var spine;
};
Pool.prototype.freeAll = function (items) {
for (var i = 0; i < items.length; i++) {
if (items[i].reset)
items[i].reset();
this.items[i] = items[i];
this.free(items[i]);
}
};
Pool.prototype.clear = function () {

File diff suppressed because one or more lines are too long

View File

@ -7506,9 +7506,7 @@ var spine;
};
Pool.prototype.freeAll = function (items) {
for (var i = 0; i < items.length; i++) {
if (items[i].reset)
items[i].reset();
this.items[i] = items[i];
this.free(items[i]);
}
};
Pool.prototype.clear = function () {

File diff suppressed because one or more lines are too long

View File

@ -313,8 +313,7 @@ module spine {
freeAll (items: ArrayLike<T>) {
for (let i = 0; i < items.length; i++) {
if ((items[i] as any).reset) (items[i] as any).reset();
this.items[i] = items[i];
this.free(items[i]);
}
}