From 2c430be8d1cc3e65fdef443f0ab70861103db3eb Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 15 Sep 2017 01:55:42 +0200 Subject: All occurrences of "var" have been replaced by the new introduced keywords "const" and "let" from ECMAScript 6 (2015), which scopes the variables to the nearest enclosing block instead of the nearest function block. --- template/standard/rsrc/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'template/standard') diff --git a/template/standard/rsrc/main.js b/template/standard/rsrc/main.js index b5d1530..a7a424c 100644 --- a/template/standard/rsrc/main.js +++ b/template/standard/rsrc/main.js @@ -1,8 +1,8 @@ //============================================================================== // Elements which contains the location of the previous and next site //============================================================================== -var prev = document.getElementById("prev-site"); -var next = document.getElementById("next-site"); +const prev = document.getElementById("prev-site"); +const next = document.getElementById("next-site"); //============================================================================== // Handle arrow keys and change the location to the desired direction -- cgit v1.2.3