context: qx.Proto.destroy = function() {   var manager = this.getTree() ? this.getTree().getManager() : null;  if(manager) {        // if the current destroyed item is    // selectd deselect the item. If we are    // in single selection mode we have to    // call deselectAll because setItemSelected    // refuses to deselect in this case      if(manager.getItemSelected(this)) {      if(manager.getMultiSelection()) {        manager.setItemSelected(this,false);      }      else {        manager.deselectAll();      }    }        // set the leadItem to null if the current     // destroyed item is the leadItem    if(manager.getLeadItem() == this) {      manager.setLeadItem(null);    }    // set the anchorItem to null if the current     // destroyed item is the anchorItem    if(manager.getAnchorItem() == this) {      manager.setAnchorItem(null);    }  }    // if the item has the method destroyContent defined  // then it is a TreeFolder (and it's subclasses)  // which potentially have content which also   // has to be destroyed  if(this.destroyContent) {    this.destroyContent();  }        // first disconnect the item so rendering  // of the tree lines can be done correctly  this.disconnect();    // remove the current item from  // the parent folder  var parentFolder = this.getParentFolder();  if(parentFolder) {    parentFolder.remove(this);  }  this.dispose();}  
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/40492e42f9a22a24cdd05c4b269ba4efea909fc9/AbstractTreeElement.js/buggy/qooxdoo/frontend/framework/source/class/qx/ui/tree/AbstractTreeElement.js