Debian Codegraph @

extensions/Math/modules/ve-math/ve.dm.MWChemNode.js

raw symbols SCIP
1 /*!
2 * VisualEditor DataModel MWChemNode class.
3 *
4 * @copyright See AUTHORS.txt
5 * @license MIT
6 */
7
8 /**
9 * DataModel MediaWiki chem node.
10 *
11 * @class
12 * @extends ve.dm.MWLatexNode
13 *
14 * @constructor
15 * @param {Object} [element]
16 */
17 ve.dm.MWChemNode = function VeDmMWChemNode() {
18 // Parent constructor
19 ve.dm.MWChemNode.super.apply( this, arguments );
20 };
21
22 /* Inheritance */
23
24 OO.inheritClass( ve.dm.MWChemNode, ve.dm.MWLatexNode );
25
26 /* Static members */
27
28 ve.dm.MWChemNode.static.name = 'mwChem';
29
30 ve.dm.MWChemNode.static.extensionName = 'chem';
31
32 ve.dm.MWChemNode.static.getMatchRdfaTypes = function () {
33 return [
34 'mw:Extension/chem',
35 'mw:Extension/ce' // Deprecated, kept for backwards compatibility
36 ];
37 };
38
39 /* Registration */
40
41 ve.dm.modelRegistry.register( ve.dm.MWChemNode );