puremvc
|
|
« Reply #1 on: September 04, 2008, 03:32:44 » |
|
It would be better to move that switch statement to the event handler in the mediator and have it send notifications that are specific to the function you're wanting to trigger. Why? The I'd of the view component is pretty specific to the view component. And consider you might want, for instance, keystrokes from the stage or selections from a context menu to trigger the same actions. Their mediators would evaluate their events send the same use-case specific notifications (like AppFacade.SAVE, AppFacade.RESIZE, etc.
-=Cliff>
|