X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..92c2b89db26be16707f4a805d3303ab2531006e1:/docs/source/Tree.html?ds=sidebyside diff --git a/docs/source/Tree.html b/docs/source/Tree.html index 630e9780..f4a0d53a 100644 --- a/docs/source/Tree.html +++ b/docs/source/Tree.html @@ -545,6 +545,20 @@ Ext.extend(Ext.data.Node, Ext.util.Observable, { this.parentNode.removeChild(this, destroy); return this; }, + + /** + * Removes all child nodes from this node. + * @param {Boolean} destroy true to destroy the node upon removal. Defaults to false. + * @return {Node} this + */ + removeAll : function(destroy){ + var cn = this.childNodes, + n; + while((n = cn[0])){ + this.removeChild(n, destroy); + } + return this; + }, /** * Returns the child node at the specified index.