Merge pull request #3151 from lidlanca/patch-7

Fix: Resize event does not get cleared/unbind properly due to wrong usage of jQuery api.
This commit is contained in:
Régis Hanol 2015-01-30 15:48:08 +01:00
commit 79a7c7ce41
1 changed files with 1 additions and 1 deletions

View File

@ -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();
});