even more fixes
This commit is contained in:
parent
f682267a1b
commit
8995d0f126
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,11 @@ offset: number
|
||||||
clearTimeout(this.timeout);
|
clearTimeout(this.timeout);
|
||||||
this.timeout=null;
|
this.timeout=null;
|
||||||
}
|
}
|
||||||
|
for(const thing of this.HTMLElements){
|
||||||
|
this.destroyFromID(thing[1]);
|
||||||
|
}
|
||||||
|
this.HTMLElements=[];
|
||||||
|
this.div=null;
|
||||||
}
|
}
|
||||||
constructor(
|
constructor(
|
||||||
getIDFromOffset: InfiniteScroller["getIDFromOffset"],
|
getIDFromOffset: InfiniteScroller["getIDFromOffset"],
|
||||||
|
@ -283,7 +288,6 @@ offset: number
|
||||||
}
|
}
|
||||||
async focus(id: string, flash = true): Promise<void>{
|
async focus(id: string, flash = true): Promise<void>{
|
||||||
let element: HTMLElement | undefined;
|
let element: HTMLElement | undefined;
|
||||||
this.resetVars();
|
|
||||||
for(const thing of this.HTMLElements){
|
for(const thing of this.HTMLElements){
|
||||||
if(thing[1] === id){
|
if(thing[1] === id){
|
||||||
element = thing[0];
|
element = thing[0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue