From be0a70355d23dd9b7390a9f1a893345d97f23967 Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 10 May 2016 12:10:36 +0200 Subject: [PATCH] client/paging: replace 'var' with 'let' Old habits die hard --- client/js/views/endless_page_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/views/endless_page_view.js b/client/js/views/endless_page_view.js index 17282f0..795c2da 100644 --- a/client/js/views/endless_page_view.js +++ b/client/js/views/endless_page_view.js @@ -37,7 +37,7 @@ class EndlessPageView { } let topPageNode = null; - var element = document.elementFromPoint(window.innerWidth / 2, 1); + let element = document.elementFromPoint(window.innerWidth / 2, 1); while (element.parentNode !== null) { if (element.classList.contains('page')) { topPageNode = element;