B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Create a text input for a property name.  If a non-empty property
   * name is given, we'll create a real TextProperty and add it to the
   * rule.
   */
Create a text input for a property name.  If a non-empty property
name is given, we'll create a real TextProperty and add it to the
rule.
Create a text input for a property name . If a non - empty property name is given we ' ll create a real TextProperty and add it to the rule .
function RuleEditor_newProperty()
  {
    if (!this.closeBrace.hasAttribute("tabindex")) {
      return;
    }
    this.closeBrace.removeAttribute("tabindex");
    this.newPropItem = createChild(this.propertyList, "li", {
      class: "ruleview-property ruleview-newproperty",
    });
    this.newPropSpan = createChild(this.newPropItem, "span", {
      class: "ruleview-propertyname",
      tabindex: "0"
    });
    new InplaceEditor({
      element: this.newPropSpan,
      done: this._onNewProperty,
      destroy: this._newPropertyDestroy,
      advanceChars: ":"
    });
  }
function RuleEditor_newProperty ( ) { if ( ! this . closeBrace . hasAttribute ( "tabindex" ) ) { return ; } this . closeBrace . removeAttribute ( "tabindex" ) ; this . newPropItem = createChild ( this . propertyList , "li" , { class : "ruleview-property ruleview-newproperty" , } ) ; this . newPropSpan = createChild ( this . newPropItem , "span" , { class : "ruleview-propertyname" , tabindex : "0" } ) ; new InplaceEditor ( { element : this . newPropSpan , done : this . _onNewProperty , destroy : this . _newPropertyDestroy , advanceChars : ":" } ) ; }
Create a text input for a property name.
Create a text input for a property name .
// If we're already creating a new property, ignore this. // While we're editing a new property, it doesn't make sense to // start a second new property editor, so disable focusing the // close brace for now.