B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Creates global search results elements and adds them to the results container.
   *
   * @param Map aGlobalResults
   *        A map containing the search results, grouped by script url.
   */
Creates global search results elements and adds them to the results container.
@param Map aGlobalResults
A map containing the search results, grouped by script url.
Creates global search results elements and adds them to the results container . @param Map aGlobalResults A map containing the search results grouped by script url .
function DVGS__createGlobalResultsUI(aGlobalResults) {
    let i = 0;
    for (let [scriptUrl, scriptResults] of aGlobalResults) {
      if (i++ === 0) {
        this._createScriptResultsUI(scriptUrl, scriptResults, true);
      } else {
        Services.tm.currentThread.dispatch({ run:
          this._createScriptResultsUI.bind(this, scriptUrl, scriptResults) }, 0);
      }
    }
  }
function DVGS__createGlobalResultsUI ( aGlobalResults ) { let i = 0 ; for ( let [ scriptUrl , scriptResults ] of aGlobalResults ) { if ( i ++ === 0 ) { this . _createScriptResultsUI ( scriptUrl , scriptResults , true ) ; } else { Services . tm . currentThread . dispatch ( { run : this . _createScriptResultsUI . bind ( this , scriptUrl , scriptResults ) } , 0 ) ; } } }
Creates global search results elements and adds them to the results container.
Creates global search results elements and adds them to the results container .
// Dispatch subsequent document manipulation operations, to avoid // blocking the main thread when a large number of search results // is found, thus giving the impression of faster searching.