mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 19:09:29 +00:00
c2017f74b2
These don't add any knowledge but make the code harder to read and maintain, and are an additional source of errors. Change-Id: Ied57741a3f985e355adfddb4e75378d5c497faa9
35 lines
899 B
JavaScript
35 lines
899 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
|
|
*/
|
|
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;
|
|
};
|