Rename variable
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
This commit is contained in:
parent
345560ed97
commit
20616f5983
1 changed files with 4 additions and 4 deletions
|
@ -51,15 +51,15 @@ export class TimelineViewModel extends ViewModel {
|
||||||
|
|
||||||
async watchForGapFill(gapPromise, gapTile) {
|
async watchForGapFill(gapPromise, gapTile) {
|
||||||
let hasSeenUpdate = false;
|
let hasSeenUpdate = false;
|
||||||
const func = (idx, tile) => {
|
const checkForUpdate = (idx, tile) => {
|
||||||
if (tile.shape !== "gap") {
|
if (tile.shape !== "gap") {
|
||||||
hasSeenUpdate = true;
|
hasSeenUpdate = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const subscription = {
|
const subscription = {
|
||||||
onAdd: (idx, tile) => func(idx, tile),
|
onAdd: (idx, tile) => checkForUpdate(idx, tile),
|
||||||
onUpdate: (idx, tile) => func(idx, tile),
|
onUpdate: (idx, tile) => checkForUpdate(idx, tile),
|
||||||
onRemove: (idx, tile) => func(idx, tile)
|
onRemove: (idx, tile) => checkForUpdate(idx, tile)
|
||||||
};
|
};
|
||||||
this.tiles.subscribe(subscription);
|
this.tiles.subscribe(subscription);
|
||||||
const gapResult = await gapPromise;
|
const gapResult = await gapPromise;
|
||||||
|
|
Reference in a new issue