dist/toolkit.js
function(element, options) {
        this.nodes = element = $(element); // Set to nodes so instances are unset during destroy()
        options = this.setOptions(options, element);

        // Create the toasts wrapper
        this.createWrapper()
            .addClass(options.position)
            .attr('role', 'log')
            .aria({
                relevant: 'additions',
                hidden: 'false'
            });

        this.initialize();
    }
function(element, options) {
        this.nodes = element = $(element); // Set to nodes so instances are unset during destroy()
        options = this.setOptions(options, element);

        // Create the toasts wrapper
        this.createWrapper()
            .addClass(options.position)
            .attr('role', 'log')
            .aria({
                relevant: 'additions',
                hidden: 'false'
            });

        this.initialize();
    }
function ( element , options ) { this . nodes = element = $ ( element ) ; // Set to nodes so instances are unset during destroy() options = this . setOptions ( options , element ) ; // Create the toasts wrapper this . createWrapper ( ) . addClass ( options . position ) . attr ( 'role' , 'log' ) . aria ( { relevant : 'additions' , hidden : 'false' } ) ; this . initialize ( ) ; }
Initialize the toast.

@param {jQuery} element
@param {Object} [options]
Initialize the toast .