mediawiki-extensions-Visual.../modules/ve-mw/dm/metaitems/ve.dm.MWAlienMetaItem.js
James D. Forrester ada58df361 build: Bump file copyright notices for 2016
Change-Id: I3c618c196e504a80ca297a4132a17f1977a24fb7
2016-01-03 14:57:25 -08:00

41 lines
1 KiB
JavaScript

/*!
* VisualEditor DataModel MWAlienMetaItem class.
*
* @copyright 2011-2016 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( element ) {
// Parent constructor
ve.dm.AlienMetaItem.call( this, element );
};
/* 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 );