diff --git a/app/assets/javascripts/discourse/views/topic.js.es6 b/app/assets/javascripts/discourse/views/topic.js.es6 index a54ac073863..bed33a452d3 100644 --- a/app/assets/javascripts/discourse/views/topic.js.es6 +++ b/app/assets/javascripts/discourse/views/topic.js.es6 @@ -40,7 +40,7 @@ var TopicView = Discourse.View.extend(AddCategoryClass, Discourse.Scrolling, { this.bindScrolling({name: 'topic-view'}); var self = this; - $(window).resize('resize.discourse-on-scroll', function() { + $(window).on('resize.discourse-on-scroll', function() { self.scrolled(); });