From b587e4a995653cec5015d84d386c3f0f4238c287 Mon Sep 17 00:00:00 2001 From: Emanuele Date: Mon, 12 Jan 2015 20:30:01 +0100 Subject: [PATCH] fixed broken sticky class addition --- lib/sticky.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sticky.js b/lib/sticky.js index c86165f..818d218 100644 --- a/lib/sticky.js +++ b/lib/sticky.js @@ -151,11 +151,11 @@ if ( bodyClass ) { $body.addClass(bodyClass); - } + } - if(stickyClass){ + if(stickyClass){ $elem.addClass(stickyClass); - } + } $elem .css('width', elem.offsetWidth+'px')