mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[ts] Fix Pool.freeAll item insertion. Closes 1680.
This commit is contained in:
parent
ebd0bea6ed
commit
bb60264572
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user