mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-17 19:31:51 +00:00
e13b0dae48
The idea is to possibly rename some of these classes, based on these descriptions. But this should be done in later, separate patches. Change-Id: I7f9e5b2382711b434d6dd618489fa3ed8b7a46b4
35 lines
912 B
JavaScript
35 lines
912 B
JavaScript
/*!
|
|
* VisualEditor DataModel MWTemplatePlaceholderModel class.
|
|
*
|
|
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* Represents a not yet realized template invocation as long as the user is still searching for a
|
|
* template name. Meant to be an item in a {@see ve.dm.MWTransclusionModel}.
|
|
*
|
|
* @class
|
|
* @extends ve.dm.MWTransclusionPartModel
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.MWTransclusionModel} transclusion Transclusion
|
|
*/
|
|
ve.dm.MWTemplatePlaceholderModel = function VeDmMWTemplatePlaceholderModel() {
|
|
// Parent constructor
|
|
ve.dm.MWTemplatePlaceholderModel.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.dm.MWTemplatePlaceholderModel, ve.dm.MWTransclusionPartModel );
|
|
|
|
/* Methods */
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
ve.dm.MWTemplatePlaceholderModel.prototype.isEmpty = function () {
|
|
return true;
|
|
};
|