B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
   * Set all the values from another TextProperty instance into
   * this TextProperty instance.
   *
   * @param TextProperty aOther
   *        The other TextProperty instance.
   */
Set all the values from another TextProperty instance into
this TextProperty instance.

@param TextProperty aOther
The other TextProperty instance.
Set all the values from another TextProperty instance into this TextProperty instance . @param TextProperty aOther The other TextProperty instance .
function TextProperty_set(aOther)
  {
    let changed = false;
    for (let item of ["name", "value", "priority", "enabled"]) {
      if (this[item] != aOther[item]) {
        this[item] = aOther[item];
        changed = true;
      }
    }
    if (changed) {
      this.updateEditor();
    }
  }
function TextProperty_set ( aOther ) { let changed = false ; for ( let item of [ "name" , "value" , "priority" , "enabled" ] ) { if ( this [ item ] != aOther [ item ] ) { this [ item ] = aOther [ item ] ; changed = true ; } } if ( changed ) { this . updateEditor ( ) ; } }
Set all the values from another TextProperty instance into
 this TextProperty instance.
Set all the values from another TextProperty instance into this TextProperty instance .