dist/toolkit.js
function(options) {
        var opts = $.extend(true, {}, Toolkit[this.name].options, options || {}),
            key;

        // Inherit options based on responsive media queries
        if (opts.responsive && window.matchMedia) {
            $.each(opts.responsive, function(key, resOpts) {
                if (matchMedia(resOpts.breakpoint).matches) {
                    $.extend(opts, resOpts);
                }
            });
        }

        // Set hooks that start with `on`
        for (key in opts) {
            if (key.match(/^on[A-Z]/)) {
                this.addHook(key.substr(2).toLowerCase(), opts[key]);

                delete opts[key];
            }
        }

        this.options = opts;

        return opts;
    }
function(options) {
        var opts = $.extend(true, {}, Toolkit[this.name].options, options || {}),
            key;

        // Inherit options based on responsive media queries
        if (opts.responsive && window.matchMedia) {
            $.each(opts.responsive, function(key, resOpts) {
                if (matchMedia(resOpts.breakpoint).matches) {
                    $.extend(opts, resOpts);
                }
            });
        }

        // Set hooks that start with `on`
        for (key in opts) {
            if (key.match(/^on[A-Z]/)) {
                this.addHook(key.substr(2).toLowerCase(), opts[key]);

                delete opts[key];
            }
        }

        this.options = opts;

        return opts;
    }
function ( options ) { var opts = $ . extend ( true , { } , Toolkit [ this . name ] . options , options || { } ) , key ; // Inherit options based on responsive media queries if ( opts . responsive && window . matchMedia ) { $ . each ( opts . responsive , function ( key , resOpts ) { if ( matchMedia ( resOpts . breakpoint ) . matches ) { $ . extend ( opts , resOpts ) ; } } ) ; } // Set hooks that start with `on` for ( key in opts ) { if ( key . match ( / ^on[A-Z] / ) ) { this . addHook ( key . substr ( 2 ) . toLowerCase ( ) , opts [ key ] ) ; delete opts [ key ] ; } } this . options = opts ; return opts ; }
Set the options by merging with defaults. If the `responsive` option exists,
attempt to alter the options based on media query breakpoints. Furthermore,
if an option begins with `on`, add it as a hook.

@param {Object} [options]
@returns {Object}
Set the options by merging with defaults . If the responsive option exists attempt to alter the options based on media query breakpoints . Furthermore if an option begins with on add it as a hook .