mediawiki-extensions-Visual.../modules/ve/ce/nodes/ve.ce.CenterNode.js
Trevor Parscal 944228aec7 Whitespace and comments
* Added documentation for ve.AnnotationSet
* Replaced uses of "// Inheritance" with "// parent Constructor"
* Added "// Mixin constructor" where needed
* Added missing section comments like "/* Static Methods */"
* Cleaned up excessive newlines (matching /\n\n\n/g)
* Put unnecessarily multi-line statements on a single line

Change-Id: I2c9b47ba296f7dd3c9cc2985581fbcefd6d76325
2012-09-17 16:53:03 -07:00

41 lines
793 B
JavaScript

/**
* VisualEditor content editable CenterNode class.
*
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* ContentEditable node for a center tag.
*
* @class
* @constructor
* @extends {ve.ce.BranchNode}
* @param {ve.dm.CenterNode} model Model to observe
*/
ve.ce.CenterNode = function VeCeCenterNode( model ) {
// Parent constructor
ve.ce.BranchNode.call( this, 'center', model, $( '<center>') );
};
/* Inheritance */
ve.inheritClass( ve.ce.CenterNode, ve.ce.BranchNode );
/* Static Members */
/**
* Node rules.
*
* @see ve.ce.NodeFactory
* @static
* @member
*/
ve.ce.CenterNode.rules = {
'canBeSplit': false
};
/* Registration */
ve.ce.nodeFactory.register( 'center', ve.ce.CenterNode );