/** * 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 * @param {ve.ui.Toolbar} toolbar * @param {String} name */ ve.ui.Inspector = function ( 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 ) .appendTo( this.$ ); this.$acceptButton = $( '', context.inspectorDoc ) .appendTo( this.$ ); this.$form = $( '