mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 19:09:29 +00:00
bc1885c36f
Just store the JSON blob from the TemplateData API as is. This comes with a bunch of nice consequences: * Less code. * Less class properties that don't do anything but copy what's in the TemplateData blob. * Easier to understand what's going on. The `this.templateData` property is now a reference to the *actual* TemplateData documentation. * No need to cache the documentedParamOrder. Just do it when needed. This also removes an unused feature from the `extend()` method that didn't made sense anyway. Before it was possible to merge conflicting documentations. But this is not only unused, it's impossible to have multiple documentations for the same template. The method acts as a straight setter now. The next patch will rename it accordingly. Bug: T285483 Change-Id: I3ffc202577e9a20fc7491234601ccd981113f866 |
||
---|---|---|
.. | ||
ve.dm.MWImageModel.js | ||
ve.dm.MWParameterModel.js | ||
ve.dm.MWTemplateModel.js | ||
ve.dm.MWTemplatePlaceholderModel.js | ||
ve.dm.MWTemplateSpecModel.js | ||
ve.dm.MWTransclusionContentModel.js | ||
ve.dm.MWTransclusionModel.js | ||
ve.dm.MWTransclusionPartModel.js |