forked from mirrors/0ad
Fix eslint rule 'no-extra-semi'
eslint --no-config-lookup --fix --rule '"no-extra-semi": 1' Ref: #7812 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ function WeightedList()
|
||||
{
|
||||
this.elements = new Map();
|
||||
this.totalWeight = 0;
|
||||
};
|
||||
}
|
||||
|
||||
WeightedList.prototype.length = function()
|
||||
{
|
||||
|
||||
@@ -54,5 +54,5 @@ class PhaseIdent
|
||||
|
||||
phaseIcon.sprite = "stretched:" + this.page.IconPath + prodPhaseTemplate.icon;
|
||||
phaseIcon.tooltip = getEntityNamesFormatted(prodPhaseTemplate);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ class TreeSection
|
||||
|
||||
phaseIcon.sprite = "stretched:" + this.page.IconPath + prodPhaseTemplate.icon;
|
||||
phaseIcon.tooltip = getEntityNamesFormatted(prodPhaseTemplate);
|
||||
};
|
||||
}
|
||||
|
||||
onTrainerSectionWidthChange(trainerSectionWidth, trainerSectionVisible)
|
||||
{
|
||||
@@ -75,6 +75,6 @@ class TreeSection
|
||||
size += rowHeight * (phases * idx - (idx - 1) * idx / 2); // phase rows (phase-currphase+1 per row)
|
||||
|
||||
return size;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@ function GetUpgradedTemplate(playerId, templateName)
|
||||
template = cmpTemplateManager.GetTemplate(templateName);
|
||||
}
|
||||
return templateName;
|
||||
};
|
||||
}
|
||||
|
||||
Engine.RegisterGlobal("GetUpgradedTemplate", GetUpgradedTemplate);
|
||||
Engine.RegisterGlobal("ChangeEntityTemplate", ChangeEntityTemplate);
|
||||
|
||||
Reference in New Issue
Block a user