B2G/gecko/browser/devtools/scratchpad/scratchpad.js
/**
   * The load event handler for the source editor. This method does post-load
   * editor initialization.
   *
   * @private
   * @param object aState
   *        The initial Scratchpad state object.
   */
The load event handler for the source editor. This method does post-load
editor initialization.

@private
@param object aState
The initial Scratchpad state object.
The load event handler for the source editor . This method does post - load editor initialization . @private @param object aState The initial Scratchpad state object .
function SP__onEditorLoad(aState)
  {
    this.editor.addEventListener(SourceEditor.EVENTS.DIRTY_CHANGED,
                                 this._onDirtyChanged);
    this.editor.focus();
    this.editor.setCaretOffset(this.editor.getCharCount());
    if (aState) {
      this.editor.dirty = !aState.saved;
    }
    this.initialized = true;
    this._triggerObservers("Ready");
    this.populateRecentFilesMenu();
    PreferenceObserver.init();
  }
function SP__onEditorLoad ( aState ) { this . editor . addEventListener ( SourceEditor . EVENTS . DIRTY_CHANGED , this . _onDirtyChanged ) ; this . editor . focus ( ) ; this . editor . setCaretOffset ( this . editor . getCharCount ( ) ) ; if ( aState ) { this . editor . dirty = ! aState . saved ; } this . initialized = true ; this . _triggerObservers ( "Ready" ) ; this . populateRecentFilesMenu ( ) ; PreferenceObserver . init ( ) ; }
The load event handler for the source editor.
The load event handler for the source editor .