dist/toolkit.js
function(nodes, options) {
        this.nodes = $(nodes);
        options = this.setOptions(options);
        this.element = this.createElement()
            .attr('role', 'dialog')
            .aria('labelledby', this.id('title'))
            .aria('describedby', this.id('content'));

        // Enable fullscreen
        if (options.fullScreen) {
            this.element.addClass('is-fullscreen');
        }

        // Setup blackout
        if (options.blackout) {
            this.blackout = Blackout.instance();
        }

        // Initialize events
        this.addEvents([
            ['keydown', 'window', 'onKeydown'],
            ['click', 'document', 'onShow', '{selector}'],
            ['click', 'element', 'hide', this.ns('close')],
            ['click', 'element', 'onSubmit', this.ns('submit')]
        ]);

        if (options.clickout) {
            this.addEvent('click', 'element', 'onHide');
        }

        this.initialize();
    }
function(nodes, options) {
        this.nodes = $(nodes);
        options = this.setOptions(options);
        this.element = this.createElement()
            .attr('role', 'dialog')
            .aria('labelledby', this.id('title'))
            .aria('describedby', this.id('content'));

        // Enable fullscreen
        if (options.fullScreen) {
            this.element.addClass('is-fullscreen');
        }

        // Setup blackout
        if (options.blackout) {
            this.blackout = Blackout.instance();
        }

        // Initialize events
        this.addEvents([
            ['keydown', 'window', 'onKeydown'],
            ['click', 'document', 'onShow', '{selector}'],
            ['click', 'element', 'hide', this.ns('close')],
            ['click', 'element', 'onSubmit', this.ns('submit')]
        ]);

        if (options.clickout) {
            this.addEvent('click', 'element', 'onHide');
        }

        this.initialize();
    }
function ( nodes , options ) { this . nodes = $ ( nodes ) ; options = this . setOptions ( options ) ; this . element = this . createElement ( ) . attr ( 'role' , 'dialog' ) . aria ( 'labelledby' , this . id ( 'title' ) ) . aria ( 'describedby' , this . id ( 'content' ) ) ; // Enable fullscreen if ( options . fullScreen ) { this . element . addClass ( 'is-fullscreen' ) ; } // Setup blackout if ( options . blackout ) { this . blackout = Blackout . instance ( ) ; } // Initialize events this . addEvents ( [ [ 'keydown' , 'window' , 'onKeydown' ] , [ 'click' , 'document' , 'onShow' , '{selector}' ] , [ 'click' , 'element' , 'hide' , this . ns ( 'close' ) ] , [ 'click' , 'element' , 'onSubmit' , this . ns ( 'submit' ) ] ] ) ; if ( options . clickout ) { this . addEvent ( 'click' , 'element' , 'onHide' ) ; } this . initialize ( ) ; }
Initialize the modal.

@param {jQuery} nodes
@param {Object} [options]
Initialize the modal .