B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Performs a token search if necessary.
   *
   * @param string aToken
   *        The script token to find.
   */
Performs a token search if necessary.
@param string aToken
The script token to find.
Performs a token search if necessary . @param string aToken The script token to find .
function DVS__performTokenSearch(aToken) {
    if (this._prevSearchedToken !== aToken && aToken.length > 0) {
      let editor = DebuggerView.editor;
      let offset = editor.find(aToken, { ignoreCase: true });
      if (offset > -1) {
        editor.setSelection(offset, offset + aToken.length)
      }
    }
    this._prevSearchedToken = aToken;
  }
function DVS__performTokenSearch ( aToken ) { if ( this . _prevSearchedToken !== aToken && aToken . length > 0 ) { let editor = DebuggerView . editor ; let offset = editor . find ( aToken , { ignoreCase : true } ) ; if ( offset > - 1 ) { editor . setSelection ( offset , offset + aToken . length ) } } this . _prevSearchedToken = aToken ; }
Performs a token search if necessary.
Performs a token search if necessary .
// Search for tokens in the currently visible source.