rem: row.removeChild(cell); selectedNode.removeChild(row); directoriesTree_root.removeChild(selectedNode); if (nextNode) { directoriesTree.selectItem(nextNode) } 
add: directoriesList.removeChild(selectedNode); if (nextNode) directoriesList.selectItem(nextNode) 
context: function removeDirectory(){  var directoriesTree = document.getElementById("directoriesTree");  var directoriesTree_root = document.getElementById("directoriesTree_root");  var selectedNode = directoriesTree.selectedItems[0];      var nextNode = selectedNode.nextSibling;  if (!nextNode)    if (selectedNode.previousSibling)      nextNode = selectedNode.previousSibling;  var row  =  selectedNode.firstChild;  var cell =  row.firstChild;  if(gCurrentDirectoryServer && gCurrentDirectoryServerId) {    var len= gDeletedDirectories.length;    gDeletedDirectories[len] = gCurrentDirectoryServerId;  }  row.removeChild(cell);  selectedNode.removeChild(row);  directoriesTree_root.removeChild(selectedNode);  if (nextNode) {    directoriesTree.selectItem(nextNode)  } }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/pref-directory.js/clean/mailnews/addrbook/prefs/resources/content/pref-directory.js