B2G/gecko/browser/components/tabview/search.js
// and to have everything have the appropriate event handlers.
and to have everything have the appropriate event handlers.
and to have everything have the appropriate event handlers .
function Search_init() {
    let self = this;
    iQ("#search").hide();
    iQ("#searchshade").hide().mousedown(function Search_init_shade_mousedown(event) {
      if (event.target.id != "searchbox" && !self._blockClick)
        self.hide();
    });
    iQ("#searchbox").keyup(function Search_init_box_keyup() {
      self.perform();
    })
    .attr("title", tabviewString("button.searchTabs"));
    iQ("#searchbutton").mousedown(function Search_init_button_mousedown() {
      self._initiatedBy = "buttonclick";
      self.ensureShown();
      self.switchToInMode();
    })
    .attr("title", tabviewString("button.searchTabs"));
    window.addEventListener("focus", function Search_init_window_focus() {
      if (self.isEnabled()) {
        self._blockClick = true;
        setTimeout(function() {
          self._blockClick = false;
        }, 0);
      }
    }, false);
    this.switchToBeforeMode();
  }
function Search_init ( ) { let self = this ; iQ ( "#search" ) . hide ( ) ; iQ ( "#searchshade" ) . hide ( ) . mousedown ( function Search_init_shade_mousedown ( event ) { if ( event . target . id != "searchbox" && ! self . _blockClick ) self . hide ( ) ; } ) ; iQ ( "#searchbox" ) . keyup ( function Search_init_box_keyup ( ) { self . perform ( ) ; } ) . attr ( "title" , tabviewString ( "button.searchTabs" ) ) ; iQ ( "#searchbutton" ) . mousedown ( function Search_init_button_mousedown ( ) { self . _initiatedBy = "buttonclick" ; self . ensureShown ( ) ; self . switchToInMode ( ) ; } ) . attr ( "title" , tabviewString ( "button.searchTabs" ) ) ; window . addEventListener ( "focus" , function Search_init_window_focus ( ) { if ( self . isEnabled ( ) ) { self . _blockClick = true ; setTimeout ( function ( ) { self . _blockClick = false ; } , 0 ) ; } } , false ) ; this . switchToBeforeMode ( ) ; }
and to have everything have the appropriate event handlers.
and to have everything have the appropriate event handlers .