Hi,
I want to use my own method to remove and destroy all children of a
widget.
Here is my code:
removeAndDestroy : function( widget ){
if(widget.hasChildren() == true){
var childs = widget.getChildren();
var len = childs.length;
for(var i = 0; i < len; i ++){
alert(len + " : "+childs[i]);
childs[i].dispose();
}
widget.removeAll();
}
}
When I call this method it runs into an endless loop.
What is wrong with this method? Are there other options?
Thanks
Tobias
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel