puremvc
|
|
« Reply #1 on: May 27, 2009, 06:22:58 » |
|
Commands can be registered or unregistered at any time, not just at startup. You can register or unregister them when the conditions become appropriate.
Or you can trigger a 'guard' command that makes an evaluation and conditionally sends a notification that triggers a simple or macro command. For that matter, a mediator or proxy can make the decision about whether to send the notification or not if it has the info needed. Or the command itself can evaluate conditions and exit if conditions aren't met.
So you can do the conditional evaluation anywhere you choose, really.
-=Cliff>
|