dist/toolkit.js
function(element, key) {
        var value = element.data((this.keyName + '-' + key).toLowerCase());

        if ($.type(value) === 'undefined') {
            value = this.options[key];
        }

        return value;
    }
function(element, key) {
        var value = element.data((this.keyName + '-' + key).toLowerCase());

        if ($.type(value) === 'undefined') {
            value = this.options[key];
        }

        return value;
    }
function ( element , key ) { var value = element . data ( ( this . keyName + '-' + key ) . toLowerCase ( ) ) ; if ( $ . type ( value ) === 'undefined' ) { value = this . options [ key ] ; } return value ; }
Read a class option from a data attribute.
If no attribute exists, return the option value.

@param {jQuery} element
@param {String} key
@returns {*}
Read a class option from a data attribute . If no attribute exists return the option value .