2013-06-24 14:41:39 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWMathNode class.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DataModel MediaWiki math node.
|
|
|
|
*
|
|
|
|
* @class
|
2013-08-03 14:17:16 +00:00
|
|
|
* @extends ve.dm.MWExtensionNode
|
2013-07-19 22:30:29 +00:00
|
|
|
*
|
2013-06-24 14:41:39 +00:00
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
ve.dm.MWMathNode = function VeDmMWMathNode( length, element ) {
|
|
|
|
// Parent constructor
|
2013-08-03 14:17:16 +00:00
|
|
|
ve.dm.MWExtensionNode.call( this, 0, element );
|
2013-06-24 14:41:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-08-03 14:17:16 +00:00
|
|
|
ve.inheritClass( ve.dm.MWMathNode, ve.dm.MWExtensionNode );
|
2013-07-19 22:30:29 +00:00
|
|
|
|
2013-06-24 14:41:39 +00:00
|
|
|
/* Static members */
|
|
|
|
|
|
|
|
ve.dm.MWMathNode.static.name = 'mwMath';
|
|
|
|
|
2013-08-03 14:17:16 +00:00
|
|
|
ve.dm.MWMathNode.static.tagName = 'img';
|
2013-07-19 22:30:29 +00:00
|
|
|
|
2013-08-03 14:17:16 +00:00
|
|
|
ve.dm.MWMathNode.static.extensionName = 'math';
|
2013-06-24 14:41:39 +00:00
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWMathNode );
|