FIX: ESlint

This commit is contained in:
Robin Ward 2017-12-19 17:52:28 -05:00
parent d90fc415a1
commit 2735914cf6

View File

@ -17,7 +17,7 @@ export default Ember.Component.extend(LoadMore, {
$(window).on('resize.discourse-on-scroll', () => this.scrolled());
this.$().on('click.details-disabled', 'details.disabled', () => false)
this.$().on('click.details-disabled', 'details.disabled', () => false);
this.$().on('mouseup.discourse-redirect', '.excerpt a', function(e) {
// bypass if we are selecting stuff
const selection = window.getSelection && window.getSelection();
@ -39,7 +39,7 @@ export default Ember.Component.extend(LoadMore, {
_destroyed: function() {
this.unbindScrolling('user-stream-view');
$(window).unbind('resize.discourse-on-scroll');
this.$().off('click.details-disabled', 'details.disabled')
this.$().off('click.details-disabled', 'details.disabled');
// Unbind link tracking
this.$().off('mouseup.discourse-redirect', '.excerpt a');