mediawiki-extensions-Visual.../modules/ve-mw/dm/metaitems/ve.dm.MWTOCMetaItem.js
James D. Forrester 0a7a845a42 doc: Bump copyright year
Change-Id: I0b299c840ede1a1b8552cecfc70c5760ab036181
2018-01-03 17:45:07 +00:00

36 lines
883 B
JavaScript

/*!
* VisualEditor DataModel MWTOCDisableMetaItem class.
*
* @copyright 2011-2018 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 );