function styleWithAttributeNameAndValue()

in src/modules/utils/button.js [38:44]


function styleWithAttributeNameAndValue(attributeName, attributeValue, styleAttribute, styleValue) {
    var els = document.querySelectorAll('[data-' + attributeName + '="' + attributeValue + '"]');

    for (var i = 0; i < els.length; ++i) {
        els[i].style[styleAttribute] = styleValue;
    }
}