If it were me, and I was going to be replacing everything on the page, and
this was a known scenario, I would simply create a new page for it. That way
you get the benefit of forced garbage collection.

Jim


On Tue, Sep 16, 2008 at 6:36 AM, Chris Haynes <[EMAIL PROTECTED]> wrote:

> I have a Standalone app, in which, as the user progresses, the user-visible
> page needs to change competely at different stages.
>
> I've found that, functionally, I can do this by calling
>
> app.getRoot().removeAll();
>
> then adding back in all the new widgets I now need.
>
> BUT is this a 'clean' approach. Am I running the risk of leaving objects /
> events, etc. uncollected?
>
> Is there some other method I should be using (reloading the entire JS /
> window
> from the server is not acceptable).
>
> TIA
>
> Chris
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
Jim Hunter

DAILY THOUGHT: SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD
FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to