fix it again?
This commit is contained in:
@@ -277,17 +277,21 @@ class InfiniteScroller{
|
||||
}
|
||||
}
|
||||
async delete():Promise<void>{
|
||||
for(const thing of this.HTMLElements){
|
||||
await this.destroyFromID(thing[1]);
|
||||
if(this.div){
|
||||
this.div.remove();
|
||||
this.div=null;
|
||||
}
|
||||
try{
|
||||
for(const thing of this.HTMLElements){
|
||||
await this.destroyFromID(thing[1]);
|
||||
}
|
||||
}catch(e){
|
||||
console.error(e);
|
||||
}
|
||||
this.HTMLElements=[];
|
||||
if(this.timeout){
|
||||
clearTimeout(this.timeout);
|
||||
}
|
||||
if(this.div){
|
||||
this.div.remove();
|
||||
}
|
||||
this.div=null;
|
||||
}
|
||||
}
|
||||
export{InfiniteScroller};
|
||||
|
Reference in New Issue
Block a user