On 24 nov. 2010, at 10:29, Martin Wittemann wrote:
> removeAll should return an array containing all returned children. That would 
> make it to a single line of code.
> 
> qx.util.DisposeUtil.disposeArray(container.removeAll());
> 
> What do you think about such a solution? That way, the dispose is kept at its 
> place and its still a pretty nice API.
> 
+1

What would be the point to keep widget instances when the container is dispose ?
A widget can't belongs to several container, so disposing the container should 
mean disposing the widgets inside.
That is not linked to previous point, but container.dispose could do the 
qx.util.DisposeUtil.disposeArray(container.removeAll())
That way, a simple call to dispose on any GUI node will dispose the sub tree.


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to