rem: if ( selArray && selArray.length == 1 ) DisplayCardViewPane(selArray[0]); 
add: if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) DisplayCardViewPane(tree.selectedItems[0]); 
context: function UpdateCardView(){	var selArray = document.getElementById('resultsTree').getElementsByAttribute('selected', 'true');	if ( selArray && selArray.length == 1 )		DisplayCardViewPane(selArray[0]);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c8e44cb267df44e5d410235a9945f567d0c78080/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js