Skip to content

Commit

Permalink
Fixed unnecessary use of global variables. Removed deltaY which was n…
Browse files Browse the repository at this point in the history
…ever read.
  • Loading branch information
fbrandel committed Dec 14, 2011
1 parent 14c0b16 commit 9716467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrollfix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9716467

Please sign in to comment.