mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
122f49b2dd
Change-Id: I3c20809e71cc0da58123e1b5f29c4f3aac945496
41 lines
1 KiB
JavaScript
41 lines
1 KiB
JavaScript
/*!
|
|
* VisualEditor DataModel MWAlienMetaItem class.
|
|
*
|
|
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* DataModel MW-specific meta item.
|
|
*
|
|
* @class
|
|
* @abstract
|
|
* @extends ve.dm.AlienMetaItem
|
|
* @constructor
|
|
* @param {Object} element Reference to element in meta-linmod
|
|
*/
|
|
ve.dm.MWAlienMetaItem = function VeDmMWAlienMetaItem() {
|
|
// Parent constructor
|
|
ve.dm.MWAlienMetaItem.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.dm.MWAlienMetaItem, ve.dm.AlienMetaItem );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.dm.MWAlienMetaItem.static.name = 'mwAlienMeta';
|
|
|
|
ve.dm.MWAlienMetaItem.static.matchRdfaTypes = [
|
|
/^mw:/
|
|
];
|
|
|
|
// toDataElement inherited from AlienMetaItem, will return regular alienMeta elements but
|
|
// that's fine. This class is only here so that <meta>/<link> tags with an mw: type are correctly
|
|
// mapped to AlienMetaItem rather than AlienNode.
|
|
|
|
/* Registration */
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWAlienMetaItem );
|