params: params,
resolve: resolve
});
- // FIXME: Simply chaining the promise doesn't work here
- // because the tick between the two handlers is often long
- // enough to render a frame, and that frame will have some
- // undesirable intermediate state.
+ // Chaining the promise doesn't work here because the tick
+ // between the two handlers is often long enough to render
+ // a frame with some undesirable intermediate state.
if (this._queue.length === 1)
this._runNext();
}.bind(this));