Skip to content

Commit

Permalink
Merge pull request joelambert#4 from fbrandel/patch-2
Browse files Browse the repository at this point in the history
Fixed unnecessary use of global variables.
  • Loading branch information
joelambert committed Dec 21, 2011
2 parents 1fcb53e + 9716467 commit cc339b0
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 || document.querySelector(elem);

Expand Down

0 comments on commit cc339b0

Please sign in to comment.