dist/toolkit.js
function doAria(element, key, value) {
    if ($.type(value) === 'undefined') {
        return element.getAttribute('aria-' + key);
    }

    if (value === true) {
        value = 'true';
    } else if (value === false) {
        value = 'false';
    }

    element.setAttribute('aria-' + key, value);
}
function doAria(element, key, value) {
    if ($.type(value) === 'undefined') {
        return element.getAttribute('aria-' + key);
    }

    if (value === true) {
        value = 'true';
    } else if (value === false) {
        value = 'false';
    }

    element.setAttribute('aria-' + key, value);
}
function doAria ( element , key , value ) { if ( $ . type ( value ) === 'undefined' ) { return element . getAttribute ( 'aria-' + key ) ; } if ( value === true ) { value = 'true' ; } else if ( value === false ) { value = 'false' ; } element . setAttribute ( 'aria-' + key , value ) ; }
A multi-purpose getter and setter for ARIA attributes.
Will prefix attribute names and cast values correctly.

@param {Element} element
@param {String|Object} key
@param {*} value
A multi - purpose getter and setter for ARIA attributes . Will prefix attribute names and cast values correctly .