rem: lastFocusedElement=currentFocusedElement; 
add: gLastFocusedElement = currentFocusedElement; 
context: function FocusRingUpdate_Mail(){  //dump ('entering focus ring update\n');  var currentFocusedElement = WhichPaneHasFocus();  if (!currentFocusedElement)  {     // dump ('setting default focus to message pane');     currentFocusedElement = GetMessagePane();  }    	if(currentFocusedElement != lastFocusedElement) {        if( currentFocusedElement == GetThreadOutliner()) {            // XXX fix me            GetThreadOutliner().setAttribute("focusring","true");            GetMessagePane().setAttribute("focusring","false");        }        else if(currentFocusedElement==GetFolderOutliner()) {            // XXX fix me            GetThreadOutliner().setAttribute("focusring","false");            GetMessagePane().setAttribute("focusring","false");        }        else if(currentFocusedElement==GetMessagePane()){            // mscott --> fix me!!            GetThreadOutliner().setAttribute("focusring","false");            GetMessagePane().setAttribute("focusring","true");        }        else {            // XXX fix me            GetThreadOutliner().setAttribute("focusring","false");            GetMessagePane().setAttribute("focusring","false");        }                lastFocusedElement=currentFocusedElement;        // since we just changed the pane with focus we need to update the toolbar to reflect this        document.commandDispatcher.updateCommands('mail-toolbar');    }//    else//      dump('current focused element matched last focused element\n');}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c3f9baa998519d90e7ef5bfe71174928dd29c3d2/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js