rem: if (!currentFocusedElement) return; 
context: function FocusRingUpdate_Mail(){  // WhichPaneHasFocus() uses on top.document.commandDispatcher.focusedElement  // to determine which pane has focus  // if the focusedElement is null, we're here on a blur.  // nsFocusController::Blur() calls nsFocusController::SetFocusedElement(null),   // which will update any commands listening for "focus".  // we really only care about nsFocusController::Focus() happens,   // which calls nsFocusController::SetFocusedElement(element)  var currentFocusedElement = WhichPaneHasFocus();  if (!currentFocusedElement)    return;      	if (currentFocusedElement != gLastFocusedElement) {    currentFocusedElement.setAttribute("focusring", "true");        if (gLastFocusedElement)      gLastFocusedElement.removeAttribute("focusring");    gLastFocusedElement = currentFocusedElement;    // since we just changed the pane with focus we need to update the toolbar to reflect this    // XXX TODO    // can we optimize    // and just update cmd_delete and button_delete?    UpdateMailToolbar("focus");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/028f46c57e598669cbf0babc0aff895d0d3eb53c/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js