From bd99960ed183cf161240b6304323af5b6a12856f Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Sun, 27 Apr 2014 11:43:21 +0100 Subject: [PATCH] Add missing variables when cleaned. --- src/perfect-scrollbar.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 21b9b57..2a686f4 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -567,8 +567,12 @@ $scrollbarYRail.remove(); // clean all variables + $scrollbarXRail = + $scrollbarYRail = $scrollbarX = $scrollbarY = + scrollbarXActive = + scrollbarYActive = containerWidth = containerHeight = contentWidth = @@ -576,10 +580,15 @@ scrollbarXWidth = scrollbarXLeft = scrollbarXBottom = + isScrollbarXUsingBottom = + scrollbarXTop = scrollbarYHeight = scrollbarYTop = - scrollbarYRight = null; - isRtl = null; + scrollbarYRight = + isScrollbarYUsingRight = + scrollbarYLeft = + isRtl = + eventClassName = null; }; var ieSupport = function (version) {