Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 896e1a2

Browse files
committed
some code cleanup
1 parent 5d05800 commit 896e1a2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

js/templates/userPage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ <h1 class="page-userNameLarge floatLeft fancy-heading fontSize20 colorWhiteForce
589589
</div>
590590
</div>
591591

592-
<%= ob.backToTopTmpl() %>
592+
<%= ob.backToTopTmpl({ className: 'custCol-secondary' }) %>
593593

594594
<div class="overlay overlayObscurring hide js-blockedWarning">
595595
<div class="modalHolder">

js/views/userPageVw.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,11 +1773,12 @@ module.exports = baseVw.extend({
17731773
},
17741774

17751775
remove: function(){
1776-
baseVw.prototype.remove.apply(this, arguments);
1777-
17781776
// close colorbox to make sure the overlay doesnt remain open when going to a different page
17791777
$.colorbox.close();
17801778
messageModal.$el.off('click', this.modalCloseHandler);
1779+
this.scrollHandler && this.$obContainer.off('scroll', this.scrollHandler);
1780+
1781+
baseVw.prototype.remove.apply(this, arguments);
17811782
}
17821783

17831784
});

0 commit comments

Comments
 (0)