ESlint operator-assignment, block-scoped-var

This commit is contained in:
Peter Jaszkowiak
2017-02-18 14:20:58 -07:00
parent a0a50677da
commit 11cb3a9554
9 changed files with 17 additions and 12 deletions

View File

@@ -311,7 +311,7 @@ define('forum/topic/posts', [
var imageRect = this.getBoundingClientRect();
if (imageRect.top < threshold) {
scrollTop = scrollTop + (newHeight - oldHeight);
scrollTop += newHeight - oldHeight;
$(window).scrollTop(scrollTop);
}