Hi Andraž, Tim

Thanks for the great replies,
Andraž, your suggestions make perfect sense, keeping the scope local
and setting FX object to null

Tim, I'm going to try use reveal, seems it could prevent the need for
the extra code to delete the wrapper.
Awesome!!


On Feb 3, 11:40 am, Tim Wienk <[email protected]> wrote:
> You could consider Fx.Reveal, it doesn't use a 
> wrapper.http://jsfiddle.net/timwienk/mhbuB/10/
>
> About the Fx object still existing, objects that don't have any
> (available) references anymore will be garbage collected. You could
> take matters in your own hands a bit, by `delete`-ing (or setting to
> null) variables that reference the Fx instance in the onComplete
> handler, but it should be ok, as the only reference is a local
> variable inside the newPlayer function.

Reply via email to