Rename param

This commit is contained in:
Daniel García Aubert
2017-12-19 10:47:53 +01:00
parent 45a663d5ae
commit 79b04bbdfd

View File

@@ -1,13 +1,13 @@
module.exports = function aggregationValidator (mapconfig) {
return function validateProperty (prop, validator) {
return function validateProperty (key, validator) {
for (let index = 0; index < mapconfig.getLayers().length; index++) {
const aggregation = mapconfig.getAggregation(index);
if (aggregation === undefined || aggregation[prop] === undefined) {
if (aggregation === undefined || aggregation[key] === undefined) {
continue;
}
validator(aggregation[prop], prop, index);
validator(aggregation[key], key, index);
}
};
};