B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * Get the current state of the scratchpad. Called by the
   * Scratchpad Manager for session storing.
   *
   * @return object
   *        An object with 3 properties: filename, text, and
   *        executionContext.
   */
Get the current state of the scratchpad. Called by the
Scratchpad Manager for session storing.

@return object
An object with 3 properties: filename, text, and
executionContext.
Get the current state of the scratchpad . Called by the Scratchpad Manager for session storing . @return object An object with 3 properties : filename text and executionContext .
function SP_getState()
  {
    return {
      filename: this.filename,
      text: this.getText(),
      executionContext: this.executionContext,
      saved: !this.editor.dirty,
    };
  }
function SP_getState ( ) { return { filename : this . filename , text : this . getText ( ) , executionContext : this . executionContext , saved : ! this . editor . dirty , } ; }
Get the current state of the scratchpad.
Get the current state of the scratchpad .