mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 18:26:52 +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) {
|
Pool.prototype.freeAll = function (items) {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i].reset)
|
this.free(items[i]);
|
||||||
items[i].reset();
|
|
||||||
this.items[i] = items[i];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Pool.prototype.clear = function () {
|
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) {
|
Pool.prototype.freeAll = function (items) {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i].reset)
|
this.free(items[i]);
|
||||||
items[i].reset();
|
|
||||||
this.items[i] = items[i];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Pool.prototype.clear = function () {
|
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) {
|
Pool.prototype.freeAll = function (items) {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i].reset)
|
this.free(items[i]);
|
||||||
items[i].reset();
|
|
||||||
this.items[i] = items[i];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Pool.prototype.clear = function () {
|
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) {
|
Pool.prototype.freeAll = function (items) {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i].reset)
|
this.free(items[i]);
|
||||||
items[i].reset();
|
|
||||||
this.items[i] = items[i];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Pool.prototype.clear = function () {
|
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) {
|
Pool.prototype.freeAll = function (items) {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i].reset)
|
this.free(items[i]);
|
||||||
items[i].reset();
|
|
||||||
this.items[i] = items[i];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Pool.prototype.clear = function () {
|
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) {
|
Pool.prototype.freeAll = function (items) {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i].reset)
|
this.free(items[i]);
|
||||||
items[i].reset();
|
|
||||||
this.items[i] = items[i];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Pool.prototype.clear = function () {
|
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>) {
|
freeAll (items: ArrayLike<T>) {
|
||||||
for (let i = 0; i < items.length; i++) {
|
for (let i = 0; i < items.length; i++) {
|
||||||
if ((items[i] as any).reset) (items[i] as any).reset();
|
this.free(items[i]);
|
||||||
this.items[i] = items[i];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user