mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-23 19:43:19 +00:00
d42a0772bb
Avoids having to update the date in every file every year, which we stopped doing. Change-Id: I7bf7aa0937eef911e00772470091753a7b06fd3d
39 lines
1 KiB
JavaScript
39 lines
1 KiB
JavaScript
/*!
|
|
* VisualEditor ContentEditable MWLanguageVariantHiddenNode class.
|
|
*
|
|
* @copyright See AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* ContentEditable MediaWiki language variant hidden node.
|
|
*
|
|
* @class
|
|
* @extends ve.ce.MWLanguageVariantNode
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.MWLanguageVariantHiddenNode} model Model to observe
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ce.MWLanguageVariantHiddenNode = function VeCeMWLanguageVariantHiddenNode() {
|
|
// Parent constructor
|
|
ve.ce.MWLanguageVariantHiddenNode.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ce.MWLanguageVariantHiddenNode, ve.ce.MWLanguageVariantNode );
|
|
|
|
ve.ce.MWLanguageVariantHiddenNode.static.name = 'mwLanguageVariantHidden';
|
|
|
|
ve.ce.MWLanguageVariantHiddenNode.static.tagName = 'span';
|
|
|
|
ve.ce.MWLanguageVariantHiddenNode.prototype.appendHolder = function () {
|
|
// No holder for a hidden node.
|
|
return null;
|
|
};
|
|
|
|
/* Registration */
|
|
|
|
ve.ce.nodeFactory.register( ve.ce.MWLanguageVariantHiddenNode );
|