Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Maximum bwaka
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed Dec 24, 2014
1 parent 1c33b2e commit 9caf43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ var Article = Backbone.View.extend({
// To not shift the scroll position on remove
bumplessRemove: function(){
var pos = $(window).scrollTop();
if (!at_bottom && this.$el.offset().top < pos)
if (!at_bottom() && this.$el.offset().top < pos)
// Not sure why we need the extra 2 pixels, but we do
$(window).scrollTop(pos - this.$el.outerHeight() - 2);
this.remove();
Expand Down

0 comments on commit 9caf43a

Please sign in to comment.