fix comment

This commit is contained in:
Sam 2015-09-16 08:55:05 +10:00
parent 59c12ce35b
commit c9398eaef9
1 changed files with 4 additions and 2 deletions

View File

@ -11,8 +11,10 @@ export default DButton.extend({
top: position.top top: position.top
}; };
// TODO views/topic-footer-buttons is instansiating this via attachViewWithArgs // TODO views/topic-footer-buttons is instantiating this via attachViewWithArgs
// attachViewWithArgs // attachViewWithArgs does not set this.appEvents, it is undefined
// this is a workaround but a proper fix probably depends on either deprecation
// of attachViewClass et.el or correction of the methods to hydrate the depndencies
this.appEvents = this.appEvents || this.container.lookup('app-events:main'); this.appEvents = this.appEvents || this.container.lookup('app-events:main');
this.appEvents.trigger("popup-menu:open", loc); this.appEvents.trigger("popup-menu:open", loc);
this.sendAction("action"); this.sendAction("action");