mediawiki-extensions-Visual.../modules/ve-mw/dm/nodes/ve.dm.MWPreformattedNode.js
Ed Sanders 62bdaac13b Use super property to call parent methods
Change-Id: I76982b844cf2871d7583463def4393e5bdc33aa2
2016-08-23 11:56:47 -07:00

36 lines
891 B
JavaScript

/*!
* VisualEditor DataModel MWPreformattedNode class.
*
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* DataModel MediaWiki preformatted node.
*
* @class
* @extends ve.dm.PreformattedNode
*
* @constructor
* @param {Object} [element] Reference to element in linear model
* @param {ve.dm.Node[]} [children]
*/
ve.dm.MWPreformattedNode = function VeDmMWPreformattedNode() {
// Parent constructor
ve.dm.MWPreformattedNode.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.dm.MWPreformattedNode, ve.dm.PreformattedNode );
/* Static Properties */
ve.dm.MWPreformattedNode.static.name = 'mwPreformatted';
ve.dm.MWPreformattedNode.static.suggestedParentNodeTypes = [ 'document', 'tableCell' ];
/* Registration */
ve.dm.modelRegistry.register( ve.dm.MWPreformattedNode );