From 0b2fa2b0afd5ff63ac06d834a80b859ee91adc12 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 16 Sep 2015 11:37:26 +1000 Subject: [PATCH] FIX: admin menu rendered at incorrect spot make sure we don't unsubscribe all events when menu is destroyed --- app/assets/javascripts/discourse/components/popup-menu.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/popup-menu.js.es6 b/app/assets/javascripts/discourse/components/popup-menu.js.es6 index 1f5de232ae6..a40096153f8 100644 --- a/app/assets/javascripts/discourse/components/popup-menu.js.es6 +++ b/app/assets/javascripts/discourse/components/popup-menu.js.es6 @@ -18,7 +18,7 @@ export default Ember.Component.extend({ @on('willDestroyElement') _cleanup() { $('html').off(`mouseup.popup-menu-${this.get('elementId')}`); - this.appEvents.off("popup-menu:open"); + this.appEvents.off("popup-menu:open", this, "_changeLocation"); }, _changeLocation(location) {