B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Called when a match in the search results container is clicked.
   */
Called when a match in the search results container is clicked.
Called when a match in the search results container is clicked .
function DVGLS__onMatchClick(e) {
    if (e instanceof Event) {
      e.preventDefault();
      e.stopPropagation();
    }
    let match = e.target;
    match.container.expand(true);
    this._scrollMatchIntoViewIfNeeded(match);
    this._animateMatchBounce(match);
    let results = match.getUserData("lineResults");
    let range = match.getUserData("lineContentRange");
    let stackframes = DebuggerController.StackFrames;
    stackframes.updateEditorToLocation(results.scriptUrl, results.lineNumber, 0, 0, 1);
    let editor = DebuggerView.editor;
    let offset = editor.getCaretOffset();
    editor.setSelection(offset + range.start, offset + range.start + range.length);
  }
function DVGLS__onMatchClick ( e ) { if ( e instanceof Event ) { e . preventDefault ( ) ; e . stopPropagation ( ) ; } let match = e . target ; match . container . expand ( true ) ; this . _scrollMatchIntoViewIfNeeded ( match ) ; this . _animateMatchBounce ( match ) ; let results = match . getUserData ( "lineResults" ) ; let range = match . getUserData ( "lineContentRange" ) ; let stackframes = DebuggerController . StackFrames ; stackframes . updateEditorToLocation ( results . scriptUrl , results . lineNumber , 0 , 0 , 1 ) ; let editor = DebuggerView . editor ; let offset = editor . getCaretOffset ( ) ; editor . setSelection ( offset + range . start , offset + range . start + range . length ) ; }
Called when a match in the search results container is clicked.
Called when a match in the search results container is clicked .