Fix for nodeList as buttons

This commit is contained in:
Sam Potts 2018-08-14 12:13:00 +10:00
parent eaeccd66ae
commit 922456c46c

4
src/js/controls.js vendored
View File

@ -1627,8 +1627,8 @@ const controls = {
Object.values(this.elements.buttons)
.filter(Boolean)
.forEach(button => {
if (is.array(button)) {
button.filter(Boolean).forEach(addProperty);
if (is.array(button) || is.nodeList(button)) {
Array.from(button).filter(Boolean).forEach(addProperty);
} else {
addProperty(button);
}