flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Wright <twri...@yesco.com>
Subject Re: Garbage Collection Concern
Date Thu, 10 Oct 2013 16:19:31 GMT
Ok, thanks.
I can't remember why I even started doing this in the first place -
honestly.
I do remember having problems with dispatching an event in one particular
circumstance, so I did this and didn't look back.
Bad habits die hard I guess.
Thanks for the response :)


On Thu, Oct 10, 2013 at 9:24 AM, Jeffry Houser <jeffry@dot-com-it.com>wrote:

> 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
>
>


-- 
*Thomas Wright*
Software Engineer
Extension: 1054
Office: [801] 464.4600

Corporate Division
twright@yesco.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message