B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Sets the click events for all binary toggle filter buttons.
   * @private
   */
Sets the click events for all binary toggle filter buttons.
@private
Sets the click events for all binary toggle filter buttons . @private
function WCF__setFilterTextBoxEvents()
  {
    let timer = null;
    let timerEvent = this.adjustVisibilityOnSearchStringChange.bind(this);
    let onChange = function _onChange() {
      let timer;
      if (timer == null) {
        let timerClass = Cc["@mozilla.org/timer;1"];
        timer = timerClass.createInstance(Ci.nsITimer);
      }
      else {
        timer.cancel();
      }
      timer.initWithCallback(timerEvent, SEARCH_DELAY,
                             Ci.nsITimer.TYPE_ONE_SHOT);
    }.bind(this);
    this.filterBox.addEventListener("command", onChange, false);
    this.filterBox.addEventListener("input", onChange, false);
  }
function WCF__setFilterTextBoxEvents ( ) { let timer = null ; let timerEvent = this . adjustVisibilityOnSearchStringChange . bind ( this ) ; let onChange = function _onChange ( ) { let timer ; if ( timer == null ) { let timerClass = Cc [ "@mozilla.org/timer;1" ] ; timer = timerClass . createInstance ( Ci . nsITimer ) ; } else { timer . cancel ( ) ; } timer . initWithCallback ( timerEvent , SEARCH_DELAY , Ci . nsITimer . TYPE_ONE_SHOT ) ; } . bind ( this ) ; this . filterBox . addEventListener ( "command" , onChange , false ) ; this . filterBox . addEventListener ( "input" , onChange , false ) ; }
Sets the click events for all binary toggle filter buttons.
Sets the click events for all binary toggle filter buttons .
// To improve responsiveness, we let the user finish typing before we // perform the search.