Selecting a button from a toolbar, I would like to destroy all open windows
and start new. So a window opens and other windows can open from there and
are added to desktop manager.
So now a new button from toolbar is selected and I:
var win = desktop.getWindows();
for (var n = 0; n < win.length; n++)
{
//win[n].close();
win[n].destroy();
};
Destroying always exits the loop after one window. If I just use .close it
works or I get what I want, but obviously the next time a new toolbar button
is selected it iterates over more and more windows that I really do not wish
to be there. That part I understand, but what is happening with destroy?
Thanks for reading and helping.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Closing-Windows-in-Desktop-tp7134320p7134320.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel