Commit 4d263489 authored by alexpott's avatar alexpott

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

parent e4d6d968
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
"rules": { "rules": {
"no-var": "off", "no-var": "off",
"no-useless-escape": "off", "no-useless-escape": "off",
"no-useless-concat": "off",
"no-use-before-define": "off", "no-use-before-define": "off",
"no-throw-literal": "off", "no-throw-literal": "off",
"no-shadow": "off", "no-shadow": "off",
......
...@@ -149,9 +149,7 @@ ...@@ -149,9 +149,7 @@
attributes.push(attr + ((attrMap[attr]) ? `="${attrMap[attr]}"` : '')); attributes.push(attr + ((attrMap[attr]) ? `="${attrMap[attr]}"` : ''));
} }
} }
html += `<button type="${button.type}" class="${button.classes}"` + ` ${attributes.join(' ')}>`; html += `<button type="${button.type}" class="${button.classes}" ${attributes.join(' ')}>${button.label}</button>`;
html += button.label;
html += '</button>';
} }
return html; return html;
}; };
......
...@@ -66,9 +66,7 @@ ...@@ -66,9 +66,7 @@
attributes.push(attr + (attrMap[attr] ? '="' + attrMap[attr] + '"' : '')); attributes.push(attr + (attrMap[attr] ? '="' + attrMap[attr] + '"' : ''));
} }
} }
html += '<button type="' + button.type + '" class="' + button.classes + '"' + (' ' + attributes.join(' ') + '>'); html += '<button type="' + button.type + '" class="' + button.classes + '" ' + attributes.join(' ') + '>' + button.label + '</button>';
html += button.label;
html += '</button>';
} }
return html; 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