mediawiki-extensions-Visual.../modules/es/views/es.PreView.js
2011-11-14 23:59:36 +00:00

27 lines
473 B
JavaScript

/**
* Creates an es.PreView object.
*
* @class
* @constructor
* @extends {es.DocumentViewLeafNode}
* @param {es.PreModel} model Pre model to view
*/
es.PreView = function( model ) {
// Inheritance
es.DocumentViewLeafNode.call( this, model );
// DOM Changes
this.$.addClass( 'es-preView' );
};
/* Registration */
es.DocumentModel.nodeRules.pre = {
'self': true,
'children': null
};
/* Inheritance */
es.extendClass( es.PreView, es.DocumentViewLeafNode );