even more fixes
This commit is contained in:
@@ -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];
|
||||||
|
Reference in New Issue
Block a user