client/paging: replace 'var' with 'let'
Old habits die hard
This commit is contained in:
parent
7b342b58b5
commit
be0a70355d
|
@ -37,7 +37,7 @@ class EndlessPageView {
|
||||||
}
|
}
|
||||||
|
|
||||||
let topPageNode = null;
|
let topPageNode = null;
|
||||||
var element = document.elementFromPoint(window.innerWidth / 2, 1);
|
let element = document.elementFromPoint(window.innerWidth / 2, 1);
|
||||||
while (element.parentNode !== null) {
|
while (element.parentNode !== null) {
|
||||||
if (element.classList.contains('page')) {
|
if (element.classList.contains('page')) {
|
||||||
topPageNode = element;
|
topPageNode = element;
|
||||||
|
|
Loading…
Reference in New Issue