B2G/gecko/browser/devtools/scratchpad/scratchpad-manager.jsm
/**
   * Iterate through open scratchpad windows and save their states.
   */
Iterate through open scratchpad windows and save their states.
Iterate through open scratchpad windows and save their states .
function SPM_saveOpenWindows() {
    this._scratchpads = [];
    let enumerator = Services.wm.getEnumerator("devtools:scratchpad");
    while (enumerator.hasMoreElements()) {
      let win = enumerator.getNext();
      if (!win.closed && win.Scratchpad.initialized) {
        this._scratchpads.push(win.Scratchpad.getState());
      }
    }
  }
function SPM_saveOpenWindows ( ) { this . _scratchpads = [ ] ; let enumerator = Services . wm . getEnumerator ( "devtools:scratchpad" ) ; while ( enumerator . hasMoreElements ( ) ) { let win = enumerator . getNext ( ) ; if ( ! win . closed && win . Scratchpad . initialized ) { this . _scratchpads . push ( win . Scratchpad . getState ( ) ) ; } } }
Iterate through open scratchpad windows and save their states.
Iterate through open scratchpad windows and save their states .