B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Called when a value editor closes.  If the user pressed escape,
   * revert to the value this property had before editing.
   *
   * @param {string} aValue
   *        The value contained in the editor.
   * @param {boolean} aCommit
   *        True if the change should be applied.
   */
Called when a value editor closes.  If the user pressed escape,
revert to the value this property had before editing.

@param {string} aValue
The value contained in the editor.
@param {boolean} aCommit
True if the change should be applied.
Called when a value editor closes . If the user pressed escape revert to the value this property had before editing . @param { string } aValue The value contained in the editor . @param { boolean } aCommit True if the change should be applied .
function PropertyEditor_onValueDone(aValue, aCommit)
  {
    if (aCommit) {
      let val = this._parseValue(aValue);
      this.prop.setValue(val.value, val.priority);
      this.committed.value = this.prop.value;
      this.committed.priority = this.prop.priority;
    } else {
      this.prop.setValue(this.committed.value, this.committed.priority);
    }
  }
function PropertyEditor_onValueDone ( aValue , aCommit ) { if ( aCommit ) { let val = this . _parseValue ( aValue ) ; this . prop . setValue ( val . value , val . priority ) ; this . committed . value = this . prop . value ; this . committed . priority = this . prop . priority ; } else { this . prop . setValue ( this . committed . value , this . committed . priority ) ; } }
Called when a value editor closes.
Called when a value editor closes .