2013-07-23 13:35:26 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWTransclusionMetaItem class.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2013-07-23 13:35:26 +00:00
|
|
|
* @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.MWTransclusionMetaItem = function VeDmMWTransclusionMetaItem( element ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.dm.AlienMetaItem.call( this, element );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-10-11 21:44:09 +00:00
|
|
|
OO.inheritClass( ve.dm.MWTransclusionMetaItem, ve.dm.AlienMetaItem );
|
2013-07-23 13:35:26 +00:00
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.dm.MWTransclusionMetaItem.static.name = 'mwTransclusionMeta';
|
|
|
|
|
|
|
|
ve.dm.MWTransclusionMetaItem.static.matchTagNames = [];
|
|
|
|
|
|
|
|
// mwTransclusionMetaItems are generated by ve.dm.MWTransclusionNode#toDataElement when
|
|
|
|
// all of the transclusions contents are considered to be metadata or whitespace
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWTransclusionMetaItem );
|