mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
27 lines
473 B
JavaScript
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 );
|