Skip to content

Commit

Permalink
Merge pull request #30 from LeleDev/master
Browse files Browse the repository at this point in the history
Fixed broken sticky class addition
  • Loading branch information
d-oliveros committed Jan 12, 2015
2 parents dc3494c + b587e4a commit 91a7784
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,12 @@

if ( bodyClass ) {
$body.addClass(bodyClass);
$elem.addClass(stickyClass);
}

if(stickyClass){
$elem.addClass(stickyClass);
}

$elem
.css('width', elem.offsetWidth+'px')
.css('position', 'fixed')
Expand Down

0 comments on commit 91a7784

Please sign in to comment.