/*! * VisualEditor UserInterface GroupButtonWidget class. * * @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Creates an ve.ui.GroupButtonWidget object. * * @class * @extends OO.ui.Widget * * @param {Object} [config] Configuration options * @cfg {Object} [group] Button group parameters organized by { 'label': returnValue } * where 'returnValue' is the value associated with the button */ ve.ui.GroupButtonWidget = function VeUiGroupButtonWidget( config ) { var item, button, arrButtons = []; // Parent constructor OO.ui.Widget.call( this, config ); // Mixin constructors OO.ui.GroupElement.call( this, this.$( '