Commit da3fb2a8 by Ayesha Baig

Pass proper 'this' context to updateSidebar method so that sidebar could resize…

Pass proper 'this' context to updateSidebar method so that sidebar could resize properly on load, scroll.
parent da9d7b2e
......@@ -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;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment