rem: var index = tree.selectedIndex; 
add: var numSelected = tree.selectedItems.length; 
context: function CustomizePanel() {  var tree  = document.getElementById('selected-panels');  var index = tree.selectedIndex;  if (index != -1) {    var title         = tree.childNodes.item(index).getAttribute('title');    var customize_URL = tree.childNodes.item(index).getAttribute('customize');    if (!title || !customize_URL) return;    var customize = window.open("chrome://sidebar/content/customize-panel.xul",                                "_blank", "chrome");    customize.panel_name          = title;    customize.panel_customize_URL = customize_URL;  }  enableSave();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e970210d5f960ffa1f39aafc53f4b59355a1c6f2/customize.js/buggy/suite/common/sidebar/customize.js