even more fixes

This commit is contained in:
MathMan05 2024-11-28 13:13:34 -06:00
parent f682267a1b
commit 8995d0f126

View file

@ -33,6 +33,11 @@ offset: number
clearTimeout(this.timeout);
this.timeout=null;
}
for(const thing of this.HTMLElements){
this.destroyFromID(thing[1]);
}
this.HTMLElements=[];
this.div=null;
}
constructor(
getIDFromOffset: InfiniteScroller["getIDFromOffset"],
@ -283,7 +288,6 @@ offset: number
}
async focus(id: string, flash = true): Promise<void>{
let element: HTMLElement | undefined;
this.resetVars();
for(const thing of this.HTMLElements){
if(thing[1] === id){
element = thing[0];