X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Ftheme.es6.js;fp=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Ftheme.es6.js;h=b9355b13aa8ab4928ea2404e8ee99f676fa35142;hp=5b43f427bdf037f5cbd06bc5c9c371b8248c18da;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/quickedit/js/theme.es6.js b/web/core/modules/quickedit/js/theme.es6.js index 5b43f427b..b9355b13a 100644 --- a/web/core/modules/quickedit/js/theme.es6.js +++ b/web/core/modules/quickedit/js/theme.es6.js @@ -144,14 +144,10 @@ // Attributes. const attributes = []; const attrMap = settings.buttons[i].attributes || {}; - for (const attr in attrMap) { - if (attrMap.hasOwnProperty(attr)) { - attributes.push(attr + ((attrMap[attr]) ? `="${attrMap[attr]}"` : '')); - } - } - html += `'; + Object.keys(attrMap).forEach((attr) => { + attributes.push(attr + ((attrMap[attr]) ? `="${attrMap[attr]}"` : '')); + }); + html += ``; } return html; };