From e98c354c2d73446699866c6126922ed72876ee8d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 26 Aug 2015 12:13:03 -0400 Subject: [PATCH] We don't need to remove `swipe` events since we disabled it --- .../javascripts/discourse/components/hamburger-menu.js.es6 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 index 32e7d194a3f..226640ca9c5 100644 --- a/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/components/hamburger-menu.js.es6 @@ -6,7 +6,7 @@ export default Ember.Component.extend({ visibilityChanged: function(){ if(this.get("visible")) { - $('html').on('click.close-humburger', (e) => { + $('html').on('click.close-humburger', (e) => { if (this.get('isDestroyed')) { $('html').off('click.close-humburger'); @@ -65,8 +65,6 @@ export default Ember.Component.extend({ _removeEvents() { this.$().off('click.discourse-hamburger'); $('body').off('keydown.discourse-hambuger'); - $('body').off('swipeleft.discourse-hamburger'); - $('body').off('swiperight.discourse-hamburger'); $('body').off('click.close-humburger'); },