/** * 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 ve_ui_Inspector( toolbar, context ) { var inspector = this; // 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 = $( '