mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:03:46 +08:00
We don't need to remove swipe
events since we disabled it
This commit is contained in:
parent
3409f25c53
commit
e98c354c2d
|
@ -6,7 +6,7 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
visibilityChanged: function(){
|
visibilityChanged: function(){
|
||||||
if(this.get("visible")) {
|
if(this.get("visible")) {
|
||||||
$('html').on('click.close-humburger', (e) => {
|
$('html').on('click.close-humburger', (e) => {
|
||||||
|
|
||||||
if (this.get('isDestroyed')) {
|
if (this.get('isDestroyed')) {
|
||||||
$('html').off('click.close-humburger');
|
$('html').off('click.close-humburger');
|
||||||
|
@ -65,8 +65,6 @@ export default Ember.Component.extend({
|
||||||
_removeEvents() {
|
_removeEvents() {
|
||||||
this.$().off('click.discourse-hamburger');
|
this.$().off('click.discourse-hamburger');
|
||||||
$('body').off('keydown.discourse-hambuger');
|
$('body').off('keydown.discourse-hambuger');
|
||||||
$('body').off('swipeleft.discourse-hamburger');
|
|
||||||
$('body').off('swiperight.discourse-hamburger');
|
|
||||||
$('body').off('click.close-humburger');
|
$('body').off('click.close-humburger');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user