themis/web/js/lib/aui.js
/**
     * Defines a property that proxies the specified attribute.
     *
     * @param {Element} target The web component element.
     * @param {String} attribute The attribute name to proxy.
     *
     * @returns {undefined}
     */
Defines a property that proxies the specified attribute.
@param {Element} target The web component element.
@param {String} attribute The attribute name to proxy.

@returns {undefined}
Defines a property that proxies the specified attribute . @param { Element } target The web component element . @param { String } attribute The attribute name to proxy . @returns { undefined }
function defineAttributeProperty(target, attribute, property) {
      Object.defineProperty(target, property, {
        get: function get() {
          return this.getAttribute(attribute);
        },
        set: function set(value) {
          if (value === undefined) {
            this.removeAttribute(attribute);
          } else {
            this.setAttribute(attribute, value);
          }
        }
      });
    }
function defineAttributeProperty ( target , attribute , property ) { Object . defineProperty ( target , property , { get : function get ( ) { return this . getAttribute ( attribute ) ; } , set : function set ( value ) { if ( value === undefined ) { this . removeAttribute ( attribute ) ; } else { this . setAttribute ( attribute , value ) ; } } } ) ; }
Defines a property that proxies the specified attribute.
Defines a property that proxies the specified attribute .