mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-28 01:30:00 +00:00
More canonical property order in mw.TemplateData.Model class
This does not have any effect on how this code behaves. It's only relevant when a human reads the code. I tried to bring the properties in an order that makes the most sense, grouping stuff that clearly belongs together, as well as following how stuff is ordered on https://www.mediawiki.org/wiki/Extension:TemplateData Change-Id: Ibbe1027023f8d87bbd0a70411882a25671918670
This commit is contained in:
parent
84159109e8
commit
47e8249349
|
@ -11,17 +11,21 @@ mw.TemplateData.Model = function mwTemplateDataModel() {
|
||||||
OO.EventEmitter.call( this );
|
OO.EventEmitter.call( this );
|
||||||
|
|
||||||
// Properties
|
// Properties
|
||||||
this.params = {};
|
|
||||||
this.description = {};
|
this.description = {};
|
||||||
this.originalMaps = undefined;
|
|
||||||
this.maps = undefined;
|
this.maps = undefined;
|
||||||
this.paramOrder = [];
|
|
||||||
this.format = null;
|
|
||||||
this.paramOrderChanged = false;
|
|
||||||
this.paramIdentifierCounter = 0;
|
|
||||||
this.originalTemplateDataObject = null;
|
|
||||||
this.sourceCodeParameters = [];
|
|
||||||
this.mapsChanged = false;
|
this.mapsChanged = false;
|
||||||
|
this.originalMaps = undefined;
|
||||||
|
|
||||||
|
this.format = null;
|
||||||
|
|
||||||
|
this.params = {};
|
||||||
|
this.paramIdentifierCounter = 0;
|
||||||
|
this.sourceCodeParameters = [];
|
||||||
|
this.paramOrder = [];
|
||||||
|
this.paramOrderChanged = false;
|
||||||
|
|
||||||
|
this.originalTemplateDataObject = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Inheritance */
|
/* Inheritance */
|
||||||
|
|
Loading…
Reference in a new issue