mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
0a7a845a42
Change-Id: I0b299c840ede1a1b8552cecfc70c5760ab036181
36 lines
900 B
JavaScript
36 lines
900 B
JavaScript
/*!
|
|
* VisualEditor DataModel MWIndexMetaItem class.
|
|
*
|
|
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* DataModel index meta item (for __INDEX__ and __NOINDEX__).
|
|
*
|
|
* @class
|
|
* @extends ve.dm.MWFlaggedMetaItem
|
|
* @constructor
|
|
* @param {Object} [element] Reference to element in meta-linmod
|
|
*/
|
|
ve.dm.MWIndexMetaItem = function VeDmMWIndexMetaItem() {
|
|
// Parent constructor
|
|
ve.dm.MWIndexMetaItem.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.dm.MWIndexMetaItem, ve.dm.MWFlaggedMetaItem );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.dm.MWIndexMetaItem.static.name = 'mwIndex';
|
|
|
|
ve.dm.MWIndexMetaItem.static.group = 'mwIndex';
|
|
|
|
ve.dm.MWIndexMetaItem.static.matchRdfaTypes = [ 'mw:PageProp/index', 'mw:PageProp/noindex' ];
|
|
|
|
/* Registration */
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWIndexMetaItem );
|