rem: var nextMessage = document.getElementById(gNextMessageAfterDelete); if(!nextMessage) dump("No next message after delete\n"); SelectNextMessage(nextMessage); var threadTree = GetThreadTree(); if(threadTree) threadTree.ensureElementIsVisible(nextMessage); else dump("No thread tree\n"); gNextMessageAfterDelete = null; 
add: if(gNextMessageAfterDelete) { var nextMessage = document.getElementById(gNextMessageAfterDelete); if(!nextMessage) dump("No next message after delete\n"); SelectNextMessage(nextMessage); var threadTree = GetThreadTree(); if(threadTree) threadTree.ensureElementIsVisible(nextMessage); else dump("No thread tree\n"); gNextMessageAfterDelete = null; } 
context: 	OnDeleteOrMoveMessagesCompleted :function(folder)	{		dump("In OnDeleteOrMoveMessagesCompleted\n");		if(IsCurrentLoadedFolder(folder))		{			msgNavigationService.EnsureDocumentIsLoaded(document);			dump("next message uri is " + gNextMessageAfterDelete + "\n");			var nextMessage = document.getElementById(gNextMessageAfterDelete);			if(!nextMessage)				dump("No next message after delete\n");			SelectNextMessage(nextMessage);			var threadTree = GetThreadTree();			if(threadTree)				threadTree.ensureElementIsVisible(nextMessage);			else				dump("No thread tree\n");			gNextMessageAfterDelete = null;		}	}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/0a24489bd21f0996f9fbe7a25a358a85433b516e/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js