mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 04:45:26 +08:00
FIX: ESlint
This commit is contained in:
parent
d90fc415a1
commit
2735914cf6
@ -17,7 +17,7 @@ export default Ember.Component.extend(LoadMore, {
|
|||||||
|
|
||||||
$(window).on('resize.discourse-on-scroll', () => this.scrolled());
|
$(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) {
|
this.$().on('mouseup.discourse-redirect', '.excerpt a', function(e) {
|
||||||
// bypass if we are selecting stuff
|
// bypass if we are selecting stuff
|
||||||
const selection = window.getSelection && window.getSelection();
|
const selection = window.getSelection && window.getSelection();
|
||||||
@ -39,7 +39,7 @@ export default Ember.Component.extend(LoadMore, {
|
|||||||
_destroyed: function() {
|
_destroyed: function() {
|
||||||
this.unbindScrolling('user-stream-view');
|
this.unbindScrolling('user-stream-view');
|
||||||
$(window).unbind('resize.discourse-on-scroll');
|
$(window).unbind('resize.discourse-on-scroll');
|
||||||
this.$().off('click.details-disabled', 'details.disabled')
|
this.$().off('click.details-disabled', 'details.disabled');
|
||||||
|
|
||||||
// Unbind link tracking
|
// Unbind link tracking
|
||||||
this.$().off('mouseup.discourse-redirect', '.excerpt a');
|
this.$().off('mouseup.discourse-redirect', '.excerpt a');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user