Commit 4d263489 authored by alexpott's avatar alexpott

Issue #2914711 by droplet: JS codestyle: no-useless-concat

parent e4d6d968
......@@ -3,7 +3,6 @@
"rules": {
"no-var": "off",
"no-useless-escape": "off",
"no-useless-concat": "off",
"no-use-before-define": "off",
"no-throw-literal": "off",
"no-shadow": "off",
......
......@@ -149,9 +149,7 @@
attributes.push(attr + ((attrMap[attr]) ? `="${attrMap[attr]}"` : ''));
}
}
html += `<button type="${button.type}" class="${button.classes}"` + ` ${attributes.join(' ')}>`;
html += button.label;
html += '</button>';
html += `<button type="${button.type}" class="${button.classes}" ${attributes.join(' ')}>${button.label}</button>`;
}
return html;
};
......
......@@ -66,9 +66,7 @@
attributes.push(attr + (attrMap[attr] ? '="' + attrMap[attr] + '"' : ''));
}
}
html += '<button type="' + button.type + '" class="' + button.classes + '"' + (' ' + attributes.join(' ') + '>');
html += button.label;
html += '</button>';
html += '<button type="' + button.type + '" class="' + button.classes + '" ' + attributes.join(' ') + '>' + button.label + '</button>';
}
return html;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment