From 59cac19967de5e99e37a45d99ddfcc68f4f57530 Mon Sep 17 00:00:00 2001 From: Dries Marien Date: Thu, 18 Sep 2014 21:31:29 +0200 Subject: [PATCH] Fixed issue with activeClass When scrolling beyond container the activeclass was not removed. Typo. --- jquery.pin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.pin.js b/jquery.pin.js index 97d25c8..5648354 100644 --- a/jquery.pin.js +++ b/jquery.pin.js @@ -81,7 +81,7 @@ left: "", top: to - data.parentTop + data.pad.top }).css("position", "absolute"); - if (options.activeClass) { $this.addClass(options.activeClass); } + if (options.activeClass) { $this.removeClass(options.activeClass); } } else { $this.css({position: "", top: "", left: ""}); if (options.activeClass) { $this.removeClass(options.activeClass); }