Skip to content

Commit

Permalink
fixed broken sticky class addition
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele committed Jan 12, 2015
1 parent f4a69e0 commit b587e4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@

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

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

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

0 comments on commit b587e4a

Please sign in to comment.