code: function() { 
          for (var i=0;i<this.children.length;++i) {
              this.children[i].collapse();
              this.children[i].collapseAll();
          }
      }
docs: Recursively collapses all of this node's children.
  @method collapseAll