dist/toolkit.js
function(options, element) {
        var key, value, obj = {};

        for (key in options) {
            if (key === 'context' || key === 'template') {
                continue;
            }

            value = element.data((this.keyName + '-' + key).toLowerCase());

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

        return $.extend(true, {}, options, obj);
    }
function(options, element) {
        var key, value, obj = {};

        for (key in options) {
            if (key === 'context' || key === 'template') {
                continue;
            }

            value = element.data((this.keyName + '-' + key).toLowerCase());

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

        return $.extend(true, {}, options, obj);
    }
function ( options , element ) { var key , value , obj = { } ; for ( key in options ) { if ( key === 'context' || key === 'template' ) { continue ; } value = element . data ( ( this . keyName + '-' + key ) . toLowerCase ( ) ) ; if ( $ . type ( value ) !== 'undefined' ) { obj [ key ] = value ; } } return $ . extend ( true , { } , options , obj ) ; }
Inherit options from the target elements data attributes.

@param {Object} options
@param {jQuery} element
@returns {Object}
Inherit options from the target elements data attributes .