Hi skar,

if you are using dialogs, this code works for me:

dialog.close();
dialog.destroy();

I think that destroy is better for widgets and its somewhere in
qooxdoo documentation.

Sometimes I use:

dialog.removeListener("close", ...); // Prevent cyclic close.
dialog.close();
dialog.destroy();

-- 
Best regards
- Petr Kobalicek <http://kobalicek.com>

2009/10/16 skar <skar.karthike...@gmail.com>:
> Hi Jonathan,
>> could you describe what you use the modal dialogs for? If your just
>> overwrite your window reference by filling it with a new Window instance,
>> you create memory leaks.
>>
>> If you need several dialogs for different tasks, just create more instances
>> or try to reconfigure a single dialog. Both is better than creating a new
>> dialog instance every time you need a dialog. ;-)
>>
>> Of course, you CAN dispose a window every time it gets closed and create it
>> new if you use a timer:
>> http://tinyurl.com/qx-window-dispose
>>
> Thanks for the tips and the code :)
>
> Well, the timer assumes the window can be disposed in 1 second. I think
> I'll go with your first option of re-using the window instance. I
> basically get entry of multiple rows of table data and then save it to
> the server in this window. I can reuse the window by resetting the
> appropriate fields/widgets. I'll do that :)
>
> cheers,
> skar.
>
> --
> --
> The life so short, the craft so long to learn.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to