Skip to content
Browse files

Fix missing variable declaration

Don't accidentally leak global variables.
You should be using jsLint ;-)
  • Loading branch information...
1 parent 76f0071 commit 5c39629d0f930f9c8f8c0b111fdf8c63984de20a @ept ept committed Mar 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/jquery.jscrollpane.js
View
2 script/jquery.jscrollpane.js
@@ -780,7 +780,7 @@
function scrollToElement(ele, stickToTop, animate)
{
- var e, eleHeight, eleWidth, eleTop = 0, eleLeft = 0, viewportTop, maxVisibleEleTop, maxVisibleEleLeft, destY, destX;
+ var e, eleHeight, eleWidth, eleTop = 0, eleLeft = 0, viewportTop, viewportLeft, maxVisibleEleTop, maxVisibleEleLeft, destY, destX;
// Legal hash values aren't necessarily legal jQuery selectors so we need to catch any
// errors from the lookup...

0 comments on commit 5c39629

Please sign in to comment.
Something went wrong with that request. Please try again.