2014-01-06 09:07:24 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWMathNode class.
|
|
|
|
*
|
2024-03-19 18:37:26 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2018-04-13 14:04:06 +00:00
|
|
|
* @license MIT
|
2014-01-06 09:07:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DataModel MediaWiki math node.
|
|
|
|
*
|
|
|
|
* @class
|
2017-01-11 21:50:35 +00:00
|
|
|
* @extends ve.dm.MWLatexNode
|
2014-01-06 09:07:24 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
2014-05-20 14:52:46 +00:00
|
|
|
* @param {Object} [element]
|
2014-01-06 09:07:24 +00:00
|
|
|
*/
|
2014-05-20 14:52:46 +00:00
|
|
|
ve.dm.MWMathNode = function VeDmMWMathNode() {
|
2014-01-06 09:07:24 +00:00
|
|
|
// Parent constructor
|
2014-11-12 18:46:46 +00:00
|
|
|
ve.dm.MWMathNode.super.apply( this, arguments );
|
2014-01-06 09:07:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2017-01-11 21:50:35 +00:00
|
|
|
OO.inheritClass( ve.dm.MWMathNode, ve.dm.MWLatexNode );
|
2014-01-06 09:07:24 +00:00
|
|
|
|
|
|
|
/* Static members */
|
|
|
|
|
|
|
|
ve.dm.MWMathNode.static.name = 'mwMath';
|
|
|
|
|
|
|
|
ve.dm.MWMathNode.static.extensionName = 'math';
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWMathNode );
|