B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Adds all the prepared scripts to the scripts container.
   * If a script already exists (was previously added), nothing happens.
   */
Adds all the prepared scripts to the scripts container.
If a script already exists (was previously added), nothing happens.
Adds all the prepared scripts to the scripts container . If a script already exists ( was previously added ) nothing happens .
function DVS_commitScripts() {
    let newScripts = this._tmpScripts;
    this._tmpScripts = [];
    if (!newScripts || !newScripts.length) {
      return;
    }
    newScripts.sort(function(a, b) {
      return a.label.toLowerCase() > b.label.toLowerCase();
    });
    for (let i = 0, l = newScripts.length; i < l; i++) {
      let item = newScripts[i];
      this._createScriptElement(item.label, item.script, -1);
    }
  }
function DVS_commitScripts ( ) { let newScripts = this . _tmpScripts ; this . _tmpScripts = [ ] ; if ( ! newScripts || ! newScripts . length ) { return ; } newScripts . sort ( function ( a , b ) { return a . label . toLowerCase ( ) > b . label . toLowerCase ( ) ; } ) ; for ( let i = 0 , l = newScripts . length ; i < l ; i ++ ) { let item = newScripts [ i ] ; this . _createScriptElement ( item . label , item . script , - 1 ) ; } }
Adds all the prepared scripts to the scripts container.
Adds all the prepared scripts to the scripts container .