puremvc
|
 |
« Reply #1 on: February 22, 2010, 07:36:25 » |
|
If there are constants for a specific view component, I usually define them on the component itself. The only other actor that should know or care about the API of the view component will be its Mediator, so it is reasonable for the Mediator to refer to these constants defined on the component itself.
I never extend Notification, since it would require me to use facade.notifyObservers instead of the sendNotification convenience method on all Notifiers. If I did extend Notification, I'd define the classes in a 'common' folder same folder sibling to the the 'model', 'view' and 'controller' folders (for a standard version app).
-=Cliff>
|