mediawiki-extensions-Visual.../modules/ve/init/ve.init.Target.js

29 lines
577 B
JavaScript
Raw Normal View History

/*!
* VisualEditor Initialization Target class.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Generic Initialization target.
*
* @class
* @abstract
* @extends ve.EventEmitter
*
* @constructor
* @param {jQuery} $container Conainter to render target into
*/
ve.init.Target = function VeInitTarget( $container ) {
// Parent constructor
ve.EventEmitter.call( this );
// Properties
this.$ = $container;
};
/* Inheritance */
ve.inheritClass( ve.init.Target, ve.EventEmitter );