assets/js/modules/resizing.js in fenton-jekyll-boilerplate-0.0.11 vs assets/js/modules/resizing.js in fenton-jekyll-boilerplate-0.0.12

- old
+ new

@@ -13,18 +13,18 @@ * document.addEventListener('resized', <handler>); * * @returns {string} */ function addResizedEvent() { - var debounce = null; + let debounce = null; function resizeEnd(e) { window.clearTimeout(debounce); debounce = window.setTimeout(raiseResizeEvent, 500); } function raiseResizeEvent() { - var change = { + const change = { width: window.innerWidth - width, height: window.innerHeight - height }; width = window.innerWidth; \ No newline at end of file