define('application/widgets/player/buttons/menu', [
'application/widgets/pointerfocusablebutton',
'rofl/widgets/container'
], function (
Button,
Container
) {
'use strict';
var MenuButton = Button.extend({
/**
* Initialises the widget.
*
* @param {string} id - The id.
*/
init: function init (id) {
init.base.call(this, id);
this.addClass(['control', 'menuBtn']);
this._build();
},
/**
* Builds the widget.
*
* @private
*/
_build: function () {
var icon = this._icon = new Container();
icon.addClass('icon');
this.appendChildWidget(icon);
}
});
return MenuButton;
});