mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +00:00
57a06a6e75
We're getting rid of meta item grouping, so we need to prepare. Merged: * ve.dm.MWIndexMetaItem from ve.dm.MWIndexDisableMetaItem and ve.dm.MWIndexForceMetaItem * ve.dm.MWNewSectionEditMetaItem from ve.dm.MWNewSectionEditDisableMetaItem and ve.dm.MWNewSectionEditForceMetaItem * ve.dm.MWTOCMetaItem from ve.dm.MWTOCDisableMetaItem and ve.dm.MWTOCForceMetaItem These three now inherit from ve.dm.MWFlaggedMetaItem to avoid code duplication. Change-Id: Ic8a9cdb1226dccac2c27e7f4b965c1590a7387c0
36 lines
1 KiB
JavaScript
36 lines
1 KiB
JavaScript
/*!
|
|
* VisualEditor DataModel MWNewSectionEditMetaItem class.
|
|
*
|
|
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* DataModel new section edit link meta item (for __NEWSECTIONLINK__ and __NONEWSECTIONLINK__).
|
|
*
|
|
* @class
|
|
* @extends ve.dm.MWFlaggedMetaItem
|
|
* @constructor
|
|
* @param {Object} [element] Reference to element in meta-linmod
|
|
*/
|
|
ve.dm.MWNewSectionEditMetaItem = function VeDmMWNewSectionEditMetaItem() {
|
|
// Parent constructor
|
|
ve.dm.MWNewSectionEditMetaItem.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.dm.MWNewSectionEditMetaItem, ve.dm.MWFlaggedMetaItem );
|
|
|
|
/* Static Properties */
|
|
|
|
ve.dm.MWNewSectionEditMetaItem.static.name = 'mwNewSectionEdit';
|
|
|
|
ve.dm.MWNewSectionEditMetaItem.static.group = 'mwNewSectionEdit';
|
|
|
|
ve.dm.MWNewSectionEditMetaItem.static.matchRdfaTypes = [ 'mw:PageProp/newsectionlink', 'mw:PageProp/nonewsectionlink' ];
|
|
|
|
/* Registration */
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWNewSectionEditMetaItem );
|