FIX: admin menu rendered at incorrect spot

make sure we don't unsubscribe all events when menu is destroyed
This commit is contained in:
Sam 2015-09-16 11:37:26 +10:00
parent 3215273091
commit 0b2fa2b0af

@ -18,7 +18,7 @@ export default Ember.Component.extend({
@on('willDestroyElement') @on('willDestroyElement')
_cleanup() { _cleanup() {
$('html').off(`mouseup.popup-menu-${this.get('elementId')}`); $('html').off(`mouseup.popup-menu-${this.get('elementId')}`);
this.appEvents.off("popup-menu:open"); this.appEvents.off("popup-menu:open", this, "_changeLocation");
}, },
_changeLocation(location) { _changeLocation(location) {