From 06e5615088648ba29fac827ace4873b413e09cd5 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 3 Jul 2013 19:12:40 -0400 Subject: [PATCH] OOPS! Robin self-flaggelated. --- app/assets/javascripts/discourse/views/topic_view.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/views/topic_view.js b/app/assets/javascripts/discourse/views/topic_view.js index 9a8a7f93f0c..d9469d5dd85 100644 --- a/app/assets/javascripts/discourse/views/topic_view.js +++ b/app/assets/javascripts/discourse/views/topic_view.js @@ -69,6 +69,8 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, { didInsertElement: function(e) { this.bindScrolling({debounce: 0}); + + var topicView = this; $(window).bind('resize.discourse-on-scroll', function() { topicView.updatePosition(); }); this.$().on('mouseup.discourse-redirect', '.cooked a, a.track-link', function(e) {