flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: will event handlers in mxml be removed automatically?
Date Fri, 25 Nov 2016 15:27:13 GMT


On 11/25/16, 6:25 AM, "Frank Dahmen" <frank@dahmenia.de> wrote:

>Hi,
>e.g.
>
><s:View creationComplete="init()">
>     <s:Button click="do() "/>
></s:View>
>
>when i call navigator.popView()
>will the 2 eventhandlers be removed so the view can be gc'd ?

Assuming init() and do() are defined in the same MXML file and do not
reference things outside the MXML file, there is no need to remove the
handlers to enable GC.

HTH,
-Alex

Mime
View raw message