/** * VisualEditor user interface TextInputMenuWidget class. * * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Creates an ve.ui.TextInputMenuWidget object. * * @class * @constructor * @extends ve.ui.Widget * @param {Function} $$ jQuery for the frame the widget is in * @param {jQuery} $container Container to render menu into */ ve.ui.TextInputMenuWidget = function VeUiTextInputMenuWidget( $$, $container ) { // Parent constructor ve.ui.Widget.call( this, $$ ); // Properties this.$container = $container; this.groups = {}; this.items = {}; this.sequence = []; this.$groups = this.$$( '