src/core/component.js
function (propertyName) {
    if (this.isObjectBased) {
      if (!(propertyName in this.attrValue)) { return; }
      delete this.attrValue[propertyName];
      this.data[propertyName] = this.schema[propertyName].default;
    } else {
      this.attrValue = this.schema.default;
      this.data = this.schema.default;
    }
    this.updateProperties(this.attrValue);
  }
function (propertyName) {
    if (this.isObjectBased) {
      if (!(propertyName in this.attrValue)) { return; }
      delete this.attrValue[propertyName];
      this.data[propertyName] = this.schema[propertyName].default;
    } else {
      this.attrValue = this.schema.default;
      this.data = this.schema.default;
    }
    this.updateProperties(this.attrValue);
  }
function ( propertyName ) { if ( this . isObjectBased ) { if ( ! ( propertyName in this . attrValue ) ) { return ; } delete this . attrValue [ propertyName ] ; this . data [ propertyName ] = this . schema [ propertyName ] . default ; } else { this . attrValue = this . schema . default ; this . data = this . schema . default ; } this . updateProperties ( this . attrValue ) ; }
Reset value of a property to the property's default value.
If single-prop component, reset value to component's default value.

@param {string} propertyName - Name of property to reset.
Reset value of a property to the property s default value . If single - prop component reset value to component s default value .