tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/2293-preload-a-viewRobotlegs: Discussion 2013-05-16T09:36:51Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/267088362013-05-06T07:20:55Z2013-05-06T07:20:55ZPreload a view<div><p>There's basically two options:</p>
<ol>
<li>
<p>The mediator retrieves the selected object from the model. Or,
if you don't want to inject models into mediators, the mediator
dispatches a request, a command picks up the selected object and
returns it to the mediator. (Either by dispatching an event, or the
mediator could've passed some kind of responder object along with
the request event, which the command populates)</p>
</li>
<li>
<p>You use the <a href=
"https://github.com/Stray/robotlegs-utilities-RelaxedEventMap">Relaxed
Event Map</a>. It allows for registering listeners <em>after</em>
an event has been dispatched, exactly to solve situations like
yours.</p>
</li>
</ol></div>creynderstag:robotlegs.tenderapp.com,2009-10-18:Comment/267088362013-05-16T09:36:50Z2013-05-16T09:36:50ZPreload a view<div><p>I'm closing this for now, if you have any more questions let us
know!</p></div>creynders