/** * VisualEditor user interface Inspector class. * * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Creates an ve.ui.Inspector object. * * @class * @constructor * @extends {ve.EventEmitter} * @param {ve.ui.Toolbar} toolbar * @param {ve.ui.Context} context */ ve.ui.Inspector = function VeUiInspector( toolbar, context ) { // Inheritance ve.EventEmitter.call( this ); if ( !toolbar || !context ) { return; } // Properties this.toolbar = toolbar; this.context = context; this.$ = $( '
', context.inspectorDoc ); this.$closeButton = $( '', context.inspectorDoc ); this.$acceptButton = $( '', context.inspectorDoc ); this.$form = $( '