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() { constructor() {
super(); super();
this._index = 0; this._index = 0;
this.pending = null; this._pending = null;
} }
emitFinished() { emitFinished() {
@ -40,9 +40,9 @@ export class Actions extends decorate(Traversals) {
this.emitFinished(); this.emitFinished();
return; return;
} }
if (this.pending) { if (this._pending) {
if (this.pending instanceof TickingPromise) { if (this._pending instanceof TickingPromise) {
this.pending.tick(elapsed); this._pending.tick(elapsed);
} }
return; return;
} }
@ -59,7 +59,7 @@ export class Actions extends decorate(Traversals) {
console.error(error); console.error(error);
this.prologue(); this.prologue();
}); });
this.pending = result; this._pending = result;
break; break;
} }
this.prologue(); this.prologue();
@ -77,7 +77,7 @@ export class Actions extends decorate(Traversals) {
} }
prologue() { prologue() {
this.pending = null; this._pending = null;
if (0 === (this.index = (this.index + 1) % this.traversals.length)) { if (0 === (this.index = (this.index + 1) % this.traversals.length)) {
this.emitFinished(); this.emitFinished();
} }