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

33 lines
810 B
JavaScript

/*!
* VisualEditor ContentEditable MWPreformattedNode class.
*
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* ContentEditable MW preformatted node.
*
* @class
* @extends ve.ce.PreformattedNode
* @constructor
* @param {ve.dm.MWPreformattedNode} model Model to observe
* @param {Object} [config] Configuration options
*/
ve.ce.MWPreformattedNode = function VeCeMWPreformattedNode() {
// Parent constructor
ve.ce.MWPreformattedNode.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.ce.MWPreformattedNode, ve.ce.PreformattedNode );
/* Static Properties */
ve.ce.MWPreformattedNode.static.name = 'mwPreformatted';
/* Registration */
ve.ce.nodeFactory.register( ve.ce.MWPreformattedNode );