Source: widgets/player/buttons/live.js

define('application/widgets/player/buttons/live', [
    'application/widgets/pointerfocusablebutton',
    'rofl/widgets/label'
], function (
    Button,
    Label
) {
    'use strict';

    var LIVE_CLASS = 'icon-live-v2',
        LiveButton;

    LiveButton = Button.extend({

        /**
         * Initialises the widget.
         *
         * @param {string} id - The id.
         */
        init: function init (id) {
            init.base.call(this, id);

            this.addClass(['control', 'liveBtn']);
            this._build();
        },

        /**
         * Builds the widget.
         *
         * @private
         */
        _build: function () {
            var icon = this._icon = new Label({ text: '', classNames: ['v-align-target', 'icon', LIVE_CLASS] }),
                helper = new Label({ text: '', classNames: ['v-align-helper'] });

            this.appendChildWidget(helper);
            this.appendChildWidget(icon);
        }
    });

    return LiveButton;
});