dist/toolkit.js
function(element, query) {
        if (!query) {
            return null;
        }

        element = $(element);

        if ($.type(query) === 'function') {
            return query.call(this, element);
        }

        return element.attr(query);
    }
function(element, query) {
        if (!query) {
            return null;
        }

        element = $(element);

        if ($.type(query) === 'function') {
            return query.call(this, element);
        }

        return element.attr(query);
    }
function ( element , query ) { if ( ! query ) { return null ; } element = $ ( element ) ; if ( $ . type ( query ) === 'function' ) { return query . call ( this , element ) ; } return element . attr ( query ) ; }
Attempt to read a value from an element using the query.
Query can either be an attribute name, or a callback function.

@param {jQuery} element
@param {String|Function} query
@returns {String}
Attempt to read a value from an element using the query . Query can either be an attribute name or a callback function .