B2G/gecko/browser/components/tabview/search.js
// Adds styles and event listeners to the matched tab items.
Adds styles and event listeners to the matched tab items.
Adds styles and event listeners to the matched tab items .
function TabHandlers_onMatch(tab, index) {
    tab.addClass("onTop");
    index != 0 ? tab.addClass("notMainMatch") : tab.removeClass("notMainMatch");
    tab.$canvas
      .unbind("mousedown", TabHandlers._hideHandler)
      .unbind("mouseup", TabHandlers._showHandler);
    tab.$canvas
      .mousedown(TabHandlers._hideHandler)
      .mouseup(TabHandlers._showHandler);
  }
function TabHandlers_onMatch ( tab , index ) { tab . addClass ( "onTop" ) ; index != 0 ? tab . addClass ( "notMainMatch" ) : tab . removeClass ( "notMainMatch" ) ; tab . $canvas . unbind ( "mousedown" , TabHandlers . _hideHandler ) . unbind ( "mouseup" , TabHandlers . _showHandler ) ; tab . $canvas . mousedown ( TabHandlers . _hideHandler ) . mouseup ( TabHandlers . _showHandler ) ; }
Adds styles and event listeners to the matched tab items.
Adds styles and event listeners to the matched tab items .
// Remove any existing handlers before adding the new ones. // If we don't do this, then we may add more handlers than // we remove.