mediawiki-extensions-Visual.../modules/ve2/dm/nodes/ve.dm.TextNode.js
Trevor Parscal e0de881a8a Removed trailing whitespace in multi-line comment blocks
JSHint and various git tools complain about this, so let's just do away with them altogether

Change-Id: I731866bd21f1ee0088fb0a71df3abf92692aca23
2012-05-14 15:05:09 -07:00

38 lines
661 B
JavaScript

/**
* DataModel node for a document.
*
* @class
* @constructor
* @extends {ve.dm.LeafNode}
* @param {Integer} [length] Length of content data in document
*/
ve.dm.TextNode = function( length ) {
// Inheritance
ve.dm.LeafNode.call( this, 'text', length );
};
/* Static Members */
/**
* Node rules.
*
* @see ve.dm.NodeFactory
* @static
* @member
*/
ve.dm.TextNode.rules = {
'canHaveChildren': false,
'canHaveGrandchildren': false,
'isWrapped': false,
'childNodeTypes': [],
'parentNodeTypes': null
};
/* Registration */
ve.dm.factory.register( 'text', ve.dm.TextNode );
/* Inheritance */
ve.extendClass( ve.dm.TextNode, ve.dm.LeafNode );