rem: selectTreeItem(treeChildren, item); 
add: selectTreeItem(treeChildren, treeitem); 
context: function AddTreeItem ( name, value, treeChildrenId, attArray ){  attArray[attArray.length] = name;  var treeChildren    = document.getElementById ( treeChildrenId );  var treeitem    = document.createElementNS ( XUL_NS, "treeitem" );  var treerow     = document.createElementNS ( XUL_NS, "treerow" );  var attrCell    = document.createElementNS ( XUL_NS, "treecell" );  attrCell.setAttribute( "class", "propertylist" );  attrCell.setAttribute( "label", name );  var valueCell    = document.createElementNS ( XUL_NS, "treecell" );  valueCell.setAttribute( "class", "propertylist" );  valueCell.setAttribute( "label", value );  treerow.appendChild ( attrCell );  treerow.appendChild ( valueCell );  treeitem.appendChild ( treerow );  treeChildren.appendChild ( treeitem );  // Select item just added,  //  but suppress calling the onSelect handler  gDoOnSelectTree = false;  try {    selectTreeItem(treeChildren, item);  } catch (e) {}  gDoOnSelectTree = true;  return treeitem;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b5e84198f7cd534826914f8a401f1f70b6154245/EdAdvancedEdit.js/buggy/editor/ui/dialogs/content/EdAdvancedEdit.js