From 9716467d0dd7a139947e9bf4e154256c41765f0d Mon Sep 17 00:00:00 2001 From: Florian Brandel Date: Wed, 14 Dec 2011 18:21:33 +0100 Subject: [PATCH] Fixed unnecessary use of global variables. Removed deltaY which was never read. --- scrollfix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrollfix.js b/scrollfix.js index 525fa88..f96596a 100644 --- a/scrollfix.js +++ b/scrollfix.js @@ -9,7 +9,7 @@ var ScrollFix = function(elem) { // Variables to track inputs - var startY = startTopScroll = deltaY = undefined, + var startY, startTopScroll; elem = elem || elem.querySelector(elem);