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:
commit
79a7c7ce41
|
@ -40,7 +40,7 @@ var TopicView = Discourse.View.extend(AddCategoryClass, Discourse.Scrolling, {
|
||||||
this.bindScrolling({name: 'topic-view'});
|
this.bindScrolling({name: 'topic-view'});
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
$(window).resize('resize.discourse-on-scroll', function() {
|
$(window).on('resize.discourse-on-scroll', function() {
|
||||||
self.scrolled();
|
self.scrolled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue