From e08693fbf9faab959a68f332316a0e69d4348ae4 Mon Sep 17 00:00:00 2001 From: Louis Barranqueiro Date: Sun, 29 Jul 2018 23:57:59 -0700 Subject: [PATCH] style: lint code --- source/_js/post-bottom-bar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/_js/post-bottom-bar.js b/source/_js/post-bottom-bar.js index 9648f02e1..b6d0c1388 100644 --- a/source/_js/post-bottom-bar.js +++ b/source/_js/post-bottom-bar.js @@ -14,8 +14,8 @@ this.$header = $('#header'); this.delta = 15; this.lastScrollTop = 0; - this.lastScrollDownPos = 0 - this.lastScrollUpPos = 0 + this.lastScrollDownPos = 0; + this.lastScrollUpPos = 0; }; PostBottomBar.prototype = { @@ -59,14 +59,14 @@ (postFooterOffsetTop + this.$postFooter.height() > scrollTop + $(window).height() || postFooterOffsetTop < scrollTop + this.$header.height())) { this.$postBottomBar.slideDown(); - this.lastScrollUpPos = scrollTop + this.lastScrollUpPos = scrollTop; } } // scrolling down if (scrollTop > this.lastScrollUpPos + this.delta) { this.$postBottomBar.slideUp(); - this.lastScrollDownPos = scrollTop + this.lastScrollDownPos = scrollTop; } this.lastScrollTop = scrollTop;