On 10/10/2013 11:14 AM, Thomas Wright wrote:
Second - is there a better way to handle this, or is this legit?
From an encapsulation perspective, the renderer shouldn't know its parents. I always recommend dispatching an event, that bubbles from the renderer and then handling it in the component that contains the list.
In terms of memory management; I'm not sure though. With your approach you are creating a dependency on the list itemRenderer to its parent two levels up.
By using events that bubble, you are not creating that dependency. -- Jeffry Houser Technical Entrepreneur http://www.jeffryhouser.com 203-379-0773