chore: naming
This commit is contained in:
parent
f6a461d2d5
commit
e2ff23d35c
|
@ -16,7 +16,7 @@ export class Actions extends decorate(Traversals) {
|
|||
constructor() {
|
||||
super();
|
||||
this._index = 0;
|
||||
this.pending = null;
|
||||
this._pending = null;
|
||||
}
|
||||
|
||||
emitFinished() {
|
||||
|
@ -40,9 +40,9 @@ export class Actions extends decorate(Traversals) {
|
|||
this.emitFinished();
|
||||
return;
|
||||
}
|
||||
if (this.pending) {
|
||||
if (this.pending instanceof TickingPromise) {
|
||||
this.pending.tick(elapsed);
|
||||
if (this._pending) {
|
||||
if (this._pending instanceof TickingPromise) {
|
||||
this._pending.tick(elapsed);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ export class Actions extends decorate(Traversals) {
|
|||
console.error(error);
|
||||
this.prologue();
|
||||
});
|
||||
this.pending = result;
|
||||
this._pending = result;
|
||||
break;
|
||||
}
|
||||
this.prologue();
|
||||
|
@ -77,7 +77,7 @@ export class Actions extends decorate(Traversals) {
|
|||
}
|
||||
|
||||
prologue() {
|
||||
this.pending = null;
|
||||
this._pending = null;
|
||||
if (0 === (this.index = (this.index + 1) % this.traversals.length)) {
|
||||
this.emitFinished();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user