command
Submitted by jrowny on Wed, 10/22/2008 - 07:00
So me and the other people in my team got in a small argument over the proper use of PureMVC's mediators. We've read in various blogs that it is not a good practice to call a Proxy directly from a mediator. If you're going to call a proxy, it needs to be done from a command.
In this particular case, we're asking for the proxy to refresh some data. That's it... one call.
someProxy.refresh(). The refresh will send it's notification and our mediator will update.