Reuse a variable

FREEBIE
This commit is contained in:
lilia 2017-05-22 15:46:27 -07:00 committed by Scott Nonnenberg
parent 176339ffe6
commit 72019eb79c

View file

@ -34,7 +34,7 @@
if (this.shouldStickToBottom) {
this.bottomOffset = 0;
} else {
this.bottomOffset = this.scrollHeight - this.$el.scrollTop() - this.$el.outerHeight();
this.bottomOffset = this.scrollHeight - this.$el.scrollTop() - this.outerHeight;
}
},
resetScrollPosition: function() {