B2G/gecko/browser/devtools/scratchpad/scratchpad-manager.jsm
/**
   * Restore scratchpad windows from the scratchpad session store file.
   * Called by session restore.
   *
   * @param function aSession
   *        The session object with scratchpad states.
   *
   * @return array
   *         The restored scratchpad windows.
   */
Restore scratchpad windows from the scratchpad session store file.
Called by session restore.

@param function aSession
The session object with scratchpad states.

@return array
The restored scratchpad windows.
Restore scratchpad windows from the scratchpad session store file . Called by session restore . @param function aSession The session object with scratchpad states . @return array The restored scratchpad windows .
function SPM_restoreSession(aSession)
  {
    if (!Array.isArray(aSession)) {
      return [];
    }
    let wins = [];
    aSession.forEach(function(state) {
      let win = this.openScratchpad(state);
      wins.push(win);
    }, this);
    return wins;
  }
function SPM_restoreSession ( aSession ) { if ( ! Array . isArray ( aSession ) ) { return [ ] ; } let wins = [ ] ; aSession . forEach ( function ( state ) { let win = this . openScratchpad ( state ) ; wins . push ( win ) ; } , this ) ; return wins ; }
Restore scratchpad windows from the scratchpad session store file.
Restore scratchpad windows from the scratchpad session store file .