more fixes
This commit is contained in:
parent
7e82d783c7
commit
f682267a1b
1 changed files with 8 additions and 1 deletions
|
@ -26,6 +26,13 @@ offset: number
|
|||
this.scrollBottom=0;
|
||||
this.averageheight=60;
|
||||
this.watchtime=false;
|
||||
this.needsupdate=true;
|
||||
this.beenloaded=false;
|
||||
this.changePromise=undefined;
|
||||
if(this.timeout){
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout=null;
|
||||
}
|
||||
}
|
||||
constructor(
|
||||
getIDFromOffset: InfiniteScroller["getIDFromOffset"],
|
||||
|
@ -43,7 +50,7 @@ offset: number
|
|||
if(this.div){
|
||||
throw new Error("Div already exists, exiting.");
|
||||
}
|
||||
|
||||
this.resetVars();
|
||||
const scroll = document.createElement("div");
|
||||
scroll.classList.add("scroller");
|
||||
this.div = scroll;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue