docs(aio): more content fixes

This commit is contained in:
Jesus Rodriguez
2017-05-09 22:01:04 +02:00
committed by Pete Bacon Darwin
parent efa2928547
commit 56833a6171
7 changed files with 106 additions and 138 deletions

View File

@ -92,6 +92,6 @@ module.exports = {
},
renderAttributes(attrMap) {
return Object.keys(attrMap).map(key => ` ${key}="${attrMap[key].replace(/"/g, '"')}"`).join('');
return Object.keys(attrMap).map(key => (attrMap[key] === true) ? ` ${key}` : ` ${key}="${attrMap[key].replace(/"/g, '"')}"`).join('');
}
};