lib/renderUtility.js
function getAttributes(obj) {
    let attrString = '';
    let attrArray = Object.keys(obj);
    for (let tag of attrArray) {
        if (tag != ATTR && ATTRTAG.test(tag)) {
            attrString += ` ${tag.replace('_', '')}="${obj[tag]}"`;
        }
    }
    if (ATTR in obj) {
        attrString += ' ' + obj[ATTR];
    }
    return attrString;
}
function getAttributes(obj) {
    let attrString = '';
    let attrArray = Object.keys(obj);
    for (let tag of attrArray) {
        if (tag != ATTR && ATTRTAG.test(tag)) {
            attrString += ` ${tag.replace('_', '')}="${obj[tag]}"`;
        }
    }
    if (ATTR in obj) {
        attrString += ' ' + obj[ATTR];
    }
    return attrString;
}
function getAttributes ( obj ) { let attrString = '' ; let attrArray = Object . keys ( obj ) ; for ( let tag of attrArray ) { if ( tag != ATTR && ATTRTAG . test ( tag ) ) { attrString += ` ${ tag . replace ( '_' , '' ) } ${ obj [ tag ] } ` ; } } if ( ATTR in obj ) { attrString += ' ' + obj [ ATTR ] ; } return attrString ; }
return attribute string
return attribute string