/**
 * Main mixin for the Bolt buic module.
 *
 * @mixin
 * @namespace Bolt.buic
 *
 * @param {Object} bolt - The Bolt module.
 * @param {Object} $ - jQuery.
 */
(function (bolt, $) {
    'use strict';

    /**
     * Bolt.buic mixin container.
     *
     * @private
     * @type {Object}
     */
    var buic = {};

    /**
     * Initializes the fields, optionally based on a context.
     *
     * @function init
     * @memberof Bolt.buic
     * @param context
     */
    buic.init = function(context) {

        if (typeof context === 'undefined') {
            context = $(document.documentElement);
        }

        $('.buic-checkbox', context).each(function () {
            bolt.buic.checkbox.init(this);
        });
        $('.buic-listing', context).each(function () {
            bolt.buic.listing.init(this);
        });
        $('.buic-moment', context).each(function () {
            bolt.buic.moment.init(this);
        });
        $('.buic-progress', context).each(function () {
            bolt.buic.progress.init(this);
        });
        $('.buic-select', context).each(function () {
            bolt.buic.select.init(this);
        });
    };


    // Add placeholder for buic.
    bolt.buic = buic;

})(Bolt || {}, jQuery);

/**
 * Main mixin for the Bolt buic module.
 *
 * @mixin
 * @namespace Bolt.buic
 *
 * @param {Object} bolt - The Bolt module.
 * @param {Object} $ - jQuery.
 */
(function (bolt, $) {
    'use strict';

    /**
     * Bolt.buic mixin container.
     *
     * @private
     * @type {Object}
     */
    var buic = {};

    /**
     * Initializes the fields, optionally based on a context.
     *
     * @function init
     * @memberof Bolt.buic
     * @param context
     */
    buic.init = function(context) {

        if (typeof context === 'undefined') {
            context = $(document.documentElement);
        }

        $('.buic-checkbox', context).each(function () {
            bolt.buic.checkbox.init(this);
        });
        $('.buic-listing', context).each(function () {
            bolt.buic.listing.init(this);
        });
        $('.buic-moment', context).each(function () {
            bolt.buic.moment.init(this);
        });
        $('.buic-select', context).each(function () {
            bolt.buic.select.init(this);
        });
        // Widgets
        $('.buic-progress', context).progress();
    };


    // Add placeholder for buic.
    bolt.buic = buic;

})(Bolt || {}, jQuery);

Initialize bolt progress bar widget
Initialize bolt progress bar widget