B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Called when the new property input has been dismissed.
   * Will create a new TextProperty if necessary.
   *
   * @param string aValue
   *        The value in the editor.
   * @param bool aCommit
   *        True if the value should be committed.
   */
Called when the new property input has been dismissed.
Will create a new TextProperty if necessary.

@param string aValue
The value in the editor.
@param bool aCommit
True if the value should be committed.
Called when the new property input has been dismissed . Will create a new TextProperty if necessary . @param string aValue The value in the editor . @param bool aCommit True if the value should be committed .
function RuleEditor__onNewProperty(aValue, aCommit)
  {
    if (!aValue || !aCommit) {
      return;
    }
    let prop = this.rule.createProperty(aValue, "", "");
    let editor = new TextPropertyEditor(this, prop);
    this.propertyList.appendChild(editor.element);
    editor.valueSpan.click();
  }
function RuleEditor__onNewProperty ( aValue , aCommit ) { if ( ! aValue || ! aCommit ) { return ; } let prop = this . rule . createProperty ( aValue , "" , "" ) ; let editor = new TextPropertyEditor ( this , prop ) ; this . propertyList . appendChild ( editor . element ) ; editor . valueSpan . click ( ) ; }
Called when the new property input has been dismissed.
Called when the new property input has been dismissed .
// Create an empty-valued property and start editing it.