jenkins-bot has submitted this change and it was merged.

Change subject: Methods for new "maps" property in TD Root
......................................................................


Methods for new "maps" property in TD Root

Methods for new "maps" property in
Template Data JSON root added to
the Template Specification Model

* Added maps property to MWTemplateSpecModel
* Maps filled in extend function
* Added getter function for maps

Depends on I3bf5e002

Change-Id: Ic555093625358d8fc4cb1ca8c68793b5912e8ced
---
M modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js
1 file changed, 11 insertions(+), 0 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js 
b/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js
index ce28d8c..c18c90b 100644
--- a/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js
+++ b/modules/ve-mw/dm/models/ve.dm.MWTemplateSpecModel.js
@@ -23,6 +23,7 @@
        this.params = {};
        this.paramOrder = [];
        this.sets = [];
+       this.maps = {};
 
        // Initialization
        this.fill();
@@ -70,6 +71,7 @@
                }
        }
        this.sets = data.sets;
+       this.maps = data.maps;
 };
 
 /**
@@ -317,3 +319,12 @@
 ve.dm.MWTemplateSpecModel.prototype.getParameterSets = function () {
        return this.sets;
 };
+
+/**
+ * Get map describing relationship between another content type and the 
parameters.
+ *
+ * @return {Object} Object with application property maps to parameters keyed 
to application name.
+ */
+ve.dm.MWTemplateSpecModel.prototype.getMaps = function () {
+       return this.maps;
+};

-- 
To view, visit https://gerrit.wikimedia.org/r/167772
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic555093625358d8fc4cb1ca8c68793b5912e8ced
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Mvolz <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to