OOPS! Robin self-flaggelated.

This commit is contained in:
Robin Ward 2013-07-03 19:12:40 -04:00
parent f08e9d8822
commit 06e5615088

View File

@ -69,6 +69,8 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
didInsertElement: function(e) { didInsertElement: function(e) {
this.bindScrolling({debounce: 0}); this.bindScrolling({debounce: 0});
var topicView = this;
$(window).bind('resize.discourse-on-scroll', function() { topicView.updatePosition(); }); $(window).bind('resize.discourse-on-scroll', function() { topicView.updatePosition(); });
this.$().on('mouseup.discourse-redirect', '.cooked a, a.track-link', function(e) { this.$().on('mouseup.discourse-redirect', '.cooked a, a.track-link', function(e) {