diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 9e5c2ee..2e82972 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -17,7 +17,7 @@ })(function ($) { 'use strict'; - function int(x) { + function getInt(x) { if (typeof x === 'string') { return parseInt(x, 10); } else { @@ -107,20 +107,20 @@ var scrollbarXActive; var scrollbarXWidth; var scrollbarXLeft; - var scrollbarXBottom = int($scrollbarXRail.css('bottom')); + var scrollbarXBottom = getInt($scrollbarXRail.css('bottom')); var isScrollbarXUsingBottom = scrollbarXBottom === scrollbarXBottom; // !isNaN - var scrollbarXTop = isScrollbarXUsingBottom ? null : int($scrollbarXRail.css('top')); - var railBorderXWidth = int($scrollbarXRail.css('borderLeftWidth')) + int($scrollbarXRail.css('borderRightWidth')); + var scrollbarXTop = isScrollbarXUsingBottom ? null : getInt($scrollbarXRail.css('top')); + var railBorderXWidth = getInt($scrollbarXRail.css('borderLeftWidth')) + getInt($scrollbarXRail.css('borderRightWidth')); var $scrollbarYRail = $("