mediawiki-extensions-Visual.../modules/es/views/es.ParagraphView.js

27 lines
515 B
JavaScript
Raw Normal View History

/**
* Creates an es.ParagraphView object.
*
* @class
* @constructor
* @extends {es.DocumentViewLeafNode}
* @param {es.ParagraphModel} model Paragraph model to view
*/
es.ParagraphView = function( model ) {
// Inheritance
es.DocumentViewLeafNode.call( this, model );
// DOM Changes
this.$.addClass( 'es-paragraphView' );
};
2011-11-14 23:59:36 +00:00
/* Registration */
es.DocumentModel.nodeRules.paragraph = {
'self': true,
'children': null
};
/* Inheritance */
es.extendClass( es.ParagraphView, es.DocumentViewLeafNode );