chore: naming

This commit is contained in:
cha0s 2019-09-08 19:34:16 -05:00
parent f6a461d2d5
commit e2ff23d35c

View File

@ -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();
}