Rename variable

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

View file

@ -51,15 +51,15 @@ export class TimelineViewModel extends ViewModel {
async watchForGapFill(gapPromise, gapTile) {
let hasSeenUpdate = false;
const func = (idx, tile) => {
const checkForUpdate = (idx, tile) => {
if (tile.shape !== "gap") {
hasSeenUpdate = true;
}
}
const subscription = {
onAdd: (idx, tile) => func(idx, tile),
onUpdate: (idx, tile) => func(idx, tile),
onRemove: (idx, tile) => func(idx, tile)
onAdd: (idx, tile) => checkForUpdate(idx, tile),
onUpdate: (idx, tile) => checkForUpdate(idx, tile),
onRemove: (idx, tile) => checkForUpdate(idx, tile)
};
this.tiles.subscribe(subscription);
const gapResult = await gapPromise;