Rename ret to gapPromise

Signed-off-by: RMidhunSuresh <hi@midhun.dev>
This commit is contained in:
RMidhunSuresh 2021-10-27 12:28:12 +05:30
parent 57fa292583
commit 345560ed97

View file

@ -96,9 +96,9 @@ export class TimelineViewModel extends ViewModel {
const startIndex = this._tiles.getTileIndex(this._startTile);
const endIndex = this._tiles.getTileIndex(this._endTile);
for (const tile of this._tiles.sliceIterator(startIndex, endIndex + 1)) {
const ret = tile.notifyVisible();
if (ret) {
this.watchForGapFill(ret, tile);
const gapPromise = tile.notifyVisible();
if (gapPromise) {
this.watchForGapFill(gapPromise, tile);
}
}
loadTop = startIndex < 10;