rem: if(!collapsed) { LoadSelectionIntoMessagePane();  
add: var tree = GetThreadTree(); var selectedMessages = tree.selectedItems; var numSelected = selectedMessages.length; var messageUriToLoad = null;  if (!gNextMessageAfterDelete && selectedMessages && (numSelected == 1) ) { messageUriToLoad = selectedMessages[0].getAttribute('id'); }    if (!collapsed && messageUriToLoad) { LoadMessageByUri(messageUriToLoad); 
context: function ThreadPaneSelectionChange(){	var collapsed = IsThreadAndMessagePaneSplitterCollapsed();	if(!collapsed)	{		LoadSelectionIntoMessagePane();			}	var tree = GetThreadTree();	var selectedMessages = tree.selectedItems;	var numSelected = selectedMessages.length;	//If the current selected is 1 or 0 then we know that a change has taken place that might	//cause us to send out threadTree update notifications. We also care about this if the previous	//numSelected was 0 or 1 because we might be involved in something like a SelectAll where we won't	//get notified about the change from 0 to 1.	if(numSelected == 0 || numSelected == 1 || gOldNumSelected == 0 || gOldNumSelected == 1)	{		document.commandDispatcher.updateCommands('threadTree-select');	}	//Store the current number selected.	gOldNumSelected = numSelected;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6909a8b42a7f27b9eb44bd1da6305c4b20ef105a/threadPane.js/clean/mailnews/base/resources/content/threadPane.js