B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Called when the property name's inplace editor is closed.
   * Ignores the change if the user pressed escape, otherwise
   * commits it.
   *
   * @param {string} aValue
   *        The value contained in the editor.
   * @param {boolean} aCommit
   *        True if the change should be applied.
   */
Called when the property name's inplace editor is closed.
Ignores the change if the user pressed escape, otherwise
commits it.

@param {string} aValue
The value contained in the editor.
@param {boolean} aCommit
True if the change should be applied.
Called when the property name ' s inplace editor is closed . Ignores the change if the user pressed escape otherwise commits it . @param { string } aValue The value contained in the editor . @param { boolean } aCommit True if the change should be applied .
function TextPropertyEditor_onNameDone(aValue, aCommit)
  {
    if (!aCommit) {
      if (this.prop.overridden) {
        this.element.classList.add("ruleview-overridden");
      }
      return;
    }
    if (!aValue) {
      this.prop.remove();
      this.element.parentNode.removeChild(this.element);
      return;
    }
    this.prop.setName(aValue);
  }
function TextPropertyEditor_onNameDone ( aValue , aCommit ) { if ( ! aCommit ) { if ( this . prop . overridden ) { this . element . classList . add ( "ruleview-overridden" ) ; } return ; } if ( ! aValue ) { this . prop . remove ( ) ; this . element . parentNode . removeChild ( this . element ) ; return ; } this . prop . setName ( aValue ) ; }
Called when the property name's inplace editor is closed.
Called when the property name ' s inplace editor is closed .