dist/toolkit.js
function(checkbox, options) {
        this.element = checkbox = $(checkbox);
        options = this.setOptions(options, checkbox);
        this.wrapper = this._buildWrapper();

        // Create custom input
        this.input = this.render(options.checkboxTemplate)
            .attr('for', checkbox.attr('id'))
            .insertAfter(checkbox);

        // Initialize events
        this.initialize();
    }
function(checkbox, options) {
        this.element = checkbox = $(checkbox);
        options = this.setOptions(options, checkbox);
        this.wrapper = this._buildWrapper();

        // Create custom input
        this.input = this.render(options.checkboxTemplate)
            .attr('for', checkbox.attr('id'))
            .insertAfter(checkbox);

        // Initialize events
        this.initialize();
    }
function ( checkbox , options ) { this . element = checkbox = $ ( checkbox ) ; options = this . setOptions ( options , checkbox ) ; this . wrapper = this . _buildWrapper ( ) ; // Create custom input this . input = this . render ( options . checkboxTemplate ) . attr ( 'for' , checkbox . attr ( 'id' ) ) . insertAfter ( checkbox ) ; // Initialize events this . initialize ( ) ; }
Initialize the checkbox.

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