diff --git a/app/assets/javascripts/stick-to-window-when-scrolling.js b/app/assets/javascripts/stick-to-window-when-scrolling.js index b3ebdef1d..5b221f1b9 100644 --- a/app/assets/javascripts/stick-to-window-when-scrolling.js +++ b/app/assets/javascripts/stick-to-window-when-scrolling.js @@ -263,7 +263,7 @@ $(window).scrollTop(this.getInPageEdgePosition(sticky) - windowHeight); } - self.hasResized = false; + this.hasResized = false; }, releaseEl: function (el, sticky) { el.$fixedEl.css(sticky.edge, '');