code: function() {
          // Only collapse if currently expanded
          if (!this.expanded) { return; }
  
          // fire the collapse event handler
          var ret = this.tree.onCollapse(this);
  
          if (false === ret) {
              this.logger.log("Collapse was stopped by the abstract onCollapse");
              return;
          }
  
          ret = this.tree.fireEvent("collapse", this);
  
          if (false === ret) {
              this.logger.log("Collapse was stopped by a custom event handler");
              return;
          }
  
  
          if (!this.getEl()) {
              this.expanded = false;
          } else {
              // hide the child div
              this.hideChildren();
              this.expanded = false;
  
              this.updateIcon();
          }
  
          // this.getSpacer().title = this.getStateText();
  
          ret = this.tree.fireEvent("collapseComplete", this);
  
      }
docs: /*
  getStateText: function() {
  if (this.isLoading) {
  return this.loadingText;
  } else if (this.hasChildren(true)) {
  if (this.expanded) {
  return this.expandedText;
  } else {
  return this.collapsedText;
  }
  } else {
  return "";
  }
  },
   
  Hides this nodes children (creating them if necessary), changes the toggle style.
  @method collapse