src/widgets/tube-base/tube-base.js
/** Bind new attribute value to prop value for bound attributes */
Bind new attribute value to prop value for bound attributes
Bind new attribute value to prop value for bound attributes
attributeChangedCallback(name, oldValue, newValue) {
    if (this.constructor.boundAttributes.includes(name)) {
      if (this.hasAttribute(name) && oldValue !== newValue) {
        newValue === '' ? newValue = true : null;
        this[name] = newValue;
      } else if (!this.hasAttribute(name)) {
        this[name] = null;
      }
    }
  }
attributeChangedCallback ( name , oldValue , newValue ) { if ( this . constructor . boundAttributes . includes ( name ) ) { if ( this . hasAttribute ( name ) && oldValue !== newValue ) { newValue === '' ? newValue = true : null ; this [ name ] = newValue ; } else if ( ! this . hasAttribute ( name ) ) { this [ name ] = null ; } } }
Bind new attribute value to prop value for bound attributes
Bind new attribute value to prop value for bound attributes