diff --git a/packages/behavior/item/actions.js b/packages/behavior/item/actions.js index b53fa7a..80a0226 100644 --- a/packages/behavior/item/actions.js +++ b/packages/behavior/item/actions.js @@ -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(); }