rem: var selectedNode  = tree.selectedItems[0]; 
add: var index = tree.currentIndex; var selectedNode = tree.contentView.getItemAtIndex(index); 
context: function CustomizePanel(){  var tree  = document.getElementById('current-panels');  var numSelected = tree.selectedItems.length;  if (numSelected == 1) {    var selectedNode  = tree.selectedItems[0];    var panel_id = selectedNode.getAttribute('id');    var customize_url = selectedNode.getAttribute('customize');    debug("url   = " + customize_url);    if (!customize_url) return;    window.openDialog('chrome://communicator/content/sidebar/customize-panel.xul',                      '_blank',                      'chrome,resizable,width=690,height=600,dialog=no,close',                      panel_id,                      customize_url,                      sidebarObj.datasource_uri,                      sidebarObj.resource);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/98aa85fbb2f8f7e79f3919d025633c25cad7a9ed/customize.js/clean/xpfe/components/sidebar/resources/customize.js