B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Starts fetching all the script sources, silently.
   *
   * @param function aFetchCallback [optional]
   *        Called after each script is fetched.
   * @param function aFetchedCallback [optional]
   *        Called if all the scripts were already fetched.
   * @param array aUrls [optional]
   *        The urls for the scripts to fetch. If undefined, it defaults to
   *        all the currently known scripts.
   */
Starts fetching all the script sources, silently.
@param function aFetchCallback [optional]
Called after each script is fetched.
@param function aFetchedCallback [optional]
Called if all the scripts were already fetched.
@param array aUrls [optional]
The urls for the scripts to fetch. If undefined, it defaults to
all the currently known scripts.
Starts fetching all the script sources silently . @param function aFetchCallback [ optional ] Called after each script is fetched . @param function aFetchedCallback [ optional ] Called if all the scripts were already fetched . @param array aUrls [ optional ] The urls for the scripts to fetch . If undefined it defaults to all the currently known scripts .
function DVGS_fetchScripts(aFetchCallback = null,
                             aFetchedCallback = null,
                             aUrls = DebuggerView.Scripts.scriptLocations) {
    if (this._scriptSources.size() === aUrls.length) {
      aFetchedCallback && aFetchedCallback();
      return;
    }
    for (let url of aUrls) {
      if (this._scriptSources.has(url)) {
        continue;
      }
      DebuggerController.dispatchEvent("Debugger:LoadSource", {
        script: DebuggerView.Scripts.getScriptByLocation(url).getUserData("sourceScript"),
        options: {
          silent: true,
          callback: aFetchCallback
        }
      });
    }
  }
function DVGS_fetchScripts ( aFetchCallback = null , aFetchedCallback = null , aUrls = DebuggerView . Scripts . scriptLocations ) { if ( this . _scriptSources . size ( ) === aUrls . length ) { aFetchedCallback && aFetchedCallback ( ) ; return ; } for ( let url of aUrls ) { if ( this . _scriptSources . has ( url ) ) { continue ; } DebuggerController . dispatchEvent ( "Debugger:LoadSource" , { script : DebuggerView . Scripts . getScriptByLocation ( url ) . getUserData ( "sourceScript" ) , options : { silent : true , callback : aFetchCallback } } ) ; } }
Starts fetching all the script sources, silently.
Starts fetching all the script sources silently .
// If all the scripts sources were already fetched, then don't do anything. // Fetch each new script's source.