rem: var sel = tree.treeBoxObject.selection; 
add: var sel = tree.view.selection; 
context: function RemovePanel(){  var tree = document.getElementById('current-panels');  var sel = tree.treeBoxObject.selection;    var nextNode = -1;  var rangeCount = sel.getRangeCount();  for (var range = rangeCount-1; range >= 0; --range) {    var min = {}, max = {};    sel.getRangeAt(range, min, max);    for (var index = max.value; index >= min.value; --index) {      var item = tree.contentView.getItemAtIndex(index);      nextNode = item.nextSibling ? index : -1;      item.parentNode.removeChild(item);    }  }  if (nextNode >= 0)    sel.select(nextNode);      enable_buttons_for_current_panels();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ec7f2bfa878c9f3d3c37847453d69dab25f800e9/customize.js/buggy/suite/common/sidebar/customize.js