puremvc
|
|
« Reply #1 on: July 22, 2010, 07:48:31 » |
|
A good way is to have a mediator that is attached upstream (like at the application level) that listens for the bubbling event that is dispatched when the component is added to the view hierarchy. This contains a reference to the newly added component, and you can wrap the appropriate mediator around it. Check out the Slacker flex demo for one approach to this. In that case it's components that are added to the view hierarchy by deferred instantiation, but the concept is the same.
-=Cliff>
|