rem: if (nextNode) { tree.selectItem(nextNode) }  
add: if (nextNode >= 0) sel.select(nextNode);  
context: function RemovePanel(){  var tree = document.getElementById('current-panels');  var nextNode = null;  var numToRemove = tree.selectedItems.length;  while (numToRemove > 0) {    var selectedNode = tree.selectedItems[0];    nextNode = selectedNode.nextSibling;    if (!nextNode) {      nextNode = selectedNode.previousSibling;    }    selectedNode.parentNode.removeChild(selectedNode);    numToRemove--;  }  if (nextNode) {    tree.selectItem(nextNode)  }  enable_buttons_for_current_panels();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e0d74dbab0591d49321454ee7cde5f57910c4047/customize.js/buggy/suite/common/sidebar/customize.js