Skip to content

Commit

Permalink
no need to call the css method twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 13, 2015
1 parent 08bc738 commit 0ae7f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/templates/mojobar.html.ep
Expand Up @@ -102,7 +102,7 @@
if (st <= start) {
fixed = false;
mojobar.removeClass('animated');
mojobar.css('position', 'absolute').css('top', start + 'px');
mojobar.css({'position': 'absolute', 'top': start + 'px'});
}
else if (Math.abs(lastScrollTop - st) > 100) {
if (!mojobar.hasClass('animated')) {
Expand All @@ -119,7 +119,7 @@
}
else if (st > start) {
fixed = true;
mojobar.css('position', 'fixed').css('top', 0);
mojobar.css({'position': 'fixed', 'top': 0});
}
});
});
Expand Down

0 comments on commit 0ae7f5c

Please sign in to comment.