dist/toolkit.js
function(options) {
        options = this.setOptions(options);
        this.element = this.createElement();

        // Generate loader elements
        this.loader = this.render(options.loaderTemplate).appendTo(this.element);
        this.message = this.loader.find(this.ns('message', 'loader'));

        if (options.showLoading) {
            this.message.html(Toolkit.messages.loading);
        }

        // Initialize
        this.initialize();
    }
function(options) {
        options = this.setOptions(options);
        this.element = this.createElement();

        // Generate loader elements
        this.loader = this.render(options.loaderTemplate).appendTo(this.element);
        this.message = this.loader.find(this.ns('message', 'loader'));

        if (options.showLoading) {
            this.message.html(Toolkit.messages.loading);
        }

        // Initialize
        this.initialize();
    }
function ( options ) { options = this . setOptions ( options ) ; this . element = this . createElement ( ) ; // Generate loader elements this . loader = this . render ( options . loaderTemplate ) . appendTo ( this . element ) ; this . message = this . loader . find ( this . ns ( 'message' , 'loader' ) ) ; if ( options . showLoading ) { this . message . html ( Toolkit . messages . loading ) ; } // Initialize this . initialize ( ) ; }
Create the blackout and loader elements.

@param {Object} [options]
Create the blackout and loader elements .