rem: if(!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { gPrefInt = null; } } try { var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer"); } catch(ex)  { directoryServer = ""; } if (gCurrentDirectoryServerId == directoryServer) gPrefInt.SetCharPref("ldap_2.autoComplete.directoryServer", ""); 
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) {    if(!gPrefInt) {       try {        gPrefInt = Components.classes["@mozilla.org/preferences;1"];        gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref);      }      catch (ex) {        gPrefInt = null;      }    }    try {      var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer");    }    catch(ex)  {      directoryServer = "";    }    if (gCurrentDirectoryServerId == directoryServer)      gPrefInt.SetCharPref("ldap_2.autoComplete.directoryServer", "");    var len= gDeletedDirectories.length;    gDeletedDirectories[len] = gCurrentDirectoryServerId;  }  row.removeChild(cell);  selectedNode.removeChild(row);  directoriesTree_root.removeChild(selectedNode);  if (nextNode) {    directoriesTree.selectItem(nextNode)  }   window.opener.gRefresh = true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bd468c0ddeed02897c0ce6e1cfb0841967f30cab/pref-directory.js/buggy/mailnews/addrbook/prefs/resources/content/pref-directory.js