B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Creates a custom script element and adds it to the scripts container.
   * If the script with the specified label already exists, nothing happens.
   *
   * @param string aLabel
   *        The simplified script location to be shown.
   * @param string aScript
   *        The source script.
   * @param number aIndex
   *        The index where to insert to new script in the container.
   *        Pass -1 to append the script at the end.
   */
Creates a custom script element and adds it to the scripts container.
If the script with the specified label already exists, nothing happens.

@param string aLabel
The simplified script location to be shown.
@param string aScript
The source script.
@param number aIndex
The index where to insert to new script in the container.
Pass -1 to append the script at the end.
Creates a custom script element and adds it to the scripts container . If the script with the specified label already exists nothing happens . @param string aLabel The simplified script location to be shown . @param string aScript The source script . @param number aIndex The index where to insert to new script in the container . Pass - 1 to append the script at the end .
function DVS__createScriptElement(aLabel, aScript, aIndex)
  {
    if (aLabel == "null" || this.containsLabel(aLabel) || this.contains(aScript.url)) {
      return;
    }
    let scriptItem =
      aIndex == -1 ? this._scripts.appendItem(aLabel, aScript.url)
                   : this._scripts.insertItemAt(aIndex, aLabel, aScript.url);
    scriptItem.setAttribute("tooltiptext", aScript.url);
    scriptItem.setUserData("sourceScript", aScript, null);
  }
function DVS__createScriptElement ( aLabel , aScript , aIndex ) { if ( aLabel == "null" || this . containsLabel ( aLabel ) || this . contains ( aScript . url ) ) { return ; } let scriptItem = aIndex == - 1 ? this . _scripts . appendItem ( aLabel , aScript . url ) : this . _scripts . insertItemAt ( aIndex , aLabel , aScript . url ) ; scriptItem . setAttribute ( "tooltiptext" , aScript . url ) ; scriptItem . setUserData ( "sourceScript" , aScript , null ) ; }
Creates a custom script element and adds it to the scripts container.
Creates a custom script element and adds it to the scripts container .
// Make sure we don't duplicate anything.