rem: var profileTree = document.getElementById( "profiles" ); var profileKids = document.getElementById( "profilekids" ) if (profileTree.selectedItems && profileTree.selectedItems.length) { var selected = profileTree.selectedItems[0]; 
add: var profileList = document.getElementById( "profiles" ); if (profileList.selectedItems && profileList.selectedItems.length) { var selected = profileList.selectedItems[0]; 
context: function DeleteProfile( deleteFiles ){  var profileTree = document.getElementById( "profiles" );  var profileKids = document.getElementById( "profilekids" )  if (profileTree.selectedItems && profileTree.selectedItems.length) {    var selected = profileTree.selectedItems[0];    var firstAdjacent = selected.previousSibling;    var name = selected.getAttribute( "rowName" );    try {      profile.deleteProfile( name, deleteFiles );      profileKids.removeChild( selected );    }    catch (ex) {    }    if( firstAdjacent ) {      profileTree.selectItem( firstAdjacent );      profileTree.ensureElementIsVisible( firstAdjacent );    }    // set the button state    DoEnabling();  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/profileManager.js/clean/profile/resources/content/profileManager.js