rem: SearchTree.treeBoxObject.selection.select( -1 ); 
add: SearchTree.treeBoxObject.selection.clearSelection(); 
context:       onSelectionChanged : function( EventSelectionArray )      {         /*          This no longer works since we moved to a tree          */                  var SearchTree = document.getElementById( "unifinder-search-results-listbox" );                  SearchTree.setAttribute( "suppressonselect", "true" );         SearchTree.treeBoxObject.selection.select( -1 );                  if( EventSelectionArray.length > 0 )         {            for( i = 0; i < EventSelectionArray.length; i++ )            {               var SearchTreeItem = document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id );                              if( SearchTreeItem )               {                  var Index = SearchTree.contentView.getIndexOfItem( SearchTreeItem );                                    SearchTree.treeBoxObject.ensureRowIsVisible( Index );                        SearchTree.treeBoxObject.selection.select( Index );               }            }         }         /*SearchTree.clearSelection();                  if( EventSelectionArray.length > 0 )         {            for( i = 0; i < EventSelectionArray.length; i++ )            {               var SearchTreeItem = document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id );                              //you need this for when an event is added. It doesn't yet exist.               if( SearchTreeItem )                  SearchTree.addItemToSelection( SearchTreeItem );            }         }         dump( "\nAllow on select now!" );         SearchTree.removeAttribute( "suppressonselect" );         */      }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/3a988e91da0018285403052b99c8aa46f194e3e5/unifinder.js/clean/calendar/resources/content/unifinder.js