mediawiki-extensions-Visual.../modules/es/views/es.PreView.js
2011-11-16 18:54:05 +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.DocumentView.splitRules.pre = {
'self': true,
'children': null
};
/* Inheritance */
es.extendClass( es.PreView, es.DocumentViewLeafNode );