mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-23 19:43:19 +00:00
2c77e88d2c
Change-Id: I30539877543dc2a57bd1428a00d10ac46d8fc294
36 lines
883 B
JavaScript
36 lines
883 B
JavaScript
/*!
|
|
* VisualEditor DataModel MWTOCDisableMetaItem class.
|
|
*
|
|
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* DataModel TOC meta item (for __FORCETOC__ and __NOTOC__).
|
|
*
|
|
* @class
|
|
* @extends ve.dm.MWFlaggedMetaItem
|
|
* @constructor
|
|
* @param {Object} element Reference to element in meta-linmod
|
|
*/
|
|
ve.dm.MWTOCMetaItem = function VeDmMWTOCMetaItem() {
|
|
// Parent constructor
|
|
ve.dm.MWTOCMetaItem.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.dm.MWTOCMetaItem, ve.dm.MWFlaggedMetaItem );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.dm.MWTOCMetaItem.static.name = 'mwTOC';
|
|
|
|
ve.dm.MWTOCMetaItem.static.group = 'mwTOC';
|
|
|
|
ve.dm.MWTOCMetaItem.static.matchRdfaTypes = [ 'mw:PageProp/forcetoc', 'mw:PageProp/notoc' ];
|
|
|
|
/* Registration */
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWTOCMetaItem );
|