Pass proper 'this' context to updateSidebar method so that sidebar could resize properly on load, scroll.

This commit is contained in:
Ayesha Baig
2017-04-17 15:03:45 +05:00
parent da9d7b2e89
commit da3fb2a8d4

View File

@@ -53,7 +53,7 @@
el: this.$('.forum-search')
}).render();
this.renderBreadcrumbs();
$(window).bind('load scroll resize', this.updateSidebar);
$(window).bind('load scroll resize', _.bind(this.updateSidebar, this));
this.showBrowseMenu(true);
return this;
},