rem: findToolbar.hidden = true; setFindMode(FIND_NORMAL); setFoundLink(null); gCurrentWindow = null; changeSelectionColor(false); if (gQuickFindTimeout) { clearTimeout(gQuickFindTimeout); gQuickFindTimeout = null; } } 
add: findToolbar.hidden = true; this.setFindMode(FIND_NORMAL); this.setFoundLink(null); this.mCurrentWindow = null; this.changeSelectionColor(false); if (this.mQuickFindTimeout) { clearTimeout(this.mQuickFindTimeout); this.mQuickFindTimeout = null; } }, 
context: function delayedCloseFindBar(){  var findField = document.getElementById("find-field");  var findToolbar = document.getElementById("FindToolbar");  var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]                     .getService(Components.interfaces.nsIWindowWatcher);  if (window == ww.activeWindow) {     var focusedElement = document.commandDispatcher.focusedElement;    if (focusedElement && focusedElement.parentNode &&          (focusedElement.parentNode == findToolbar ||           focusedElement.parentNode.parentNode == findField)) {      // block scrolling on focus since find already scrolls, further      // scrolling is due to user action, so don't override this      var suppressedScroll = document.commandDispatcher.suppressFocusScroll;      document.commandDispatcher.suppressFocusScroll = true;      // We MUST reset suppressFocusScroll.      try {        if (gFoundLink)          gFoundLink.focus();        else if (gCurrentWindow)          gCurrentWindow.focus();        else          window.content.focus();      }      catch(e) {        // Retry to set focus.        try {          window.content.focus();        }        catch(e) { /* We lose focused element! */ }      }      document.commandDispatcher.suppressFocusScroll = suppressedScroll;    }  }  findToolbar.hidden = true;  setFindMode(FIND_NORMAL);  setFoundLink(null);  gCurrentWindow = null;  changeSelectionColor(false);  if (gQuickFindTimeout) {    clearTimeout(gQuickFindTimeout);    gQuickFindTimeout = null;      } }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/48b90c32357104d6984ad568a01e4a0d86fd530d/findBar.js/clean/toolkit/components/typeaheadfind/content/findBar.js