diff --git a/src/js/Features.js b/src/js/Features.js index 00acb23f..4a120d8e 100644 --- a/src/js/Features.js +++ b/src/js/Features.js @@ -109,36 +109,36 @@ Features.prototype.generateElements = function (featuresElements) { const listElements = []; - for (let i = 0; i < self._features.length; i++) { + for (const feature of self._features) { let feature_tip_html = ''; - const rawFeatureName = self._features[i].name; - const featureBit = self._features[i].bit; + const featureName = feature.name; + const featureBit = feature.bit; - if (self._features[i].haveTip) { - feature_tip_html = `
`; + if (feature.haveTip) { + feature_tip_html = `
`; } const newElements = []; - if (self._features[i].mode === 'select') { + if (feature.mode === 'select') { if (listElements.length === 0) { newElements.push($('