Merge pull request #1163 from sampotts/develop
Fix bug with nodeList for play buttons
This commit is contained in:
commit
8fb8ae1260
@ -44,7 +44,7 @@ const paths = {
|
|||||||
// Source paths
|
// Source paths
|
||||||
src: {
|
src: {
|
||||||
sass: path.join(root, 'src/sass/**/*.scss'),
|
sass: path.join(root, 'src/sass/**/*.scss'),
|
||||||
js: path.join(root, 'src/js/**/*'),
|
js: path.join(root, 'src/js/**/*.js'),
|
||||||
sprite: path.join(root, 'src/sprite/*.svg'),
|
sprite: path.join(root, 'src/sprite/*.svg'),
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ const paths = {
|
|||||||
// Source paths
|
// Source paths
|
||||||
src: {
|
src: {
|
||||||
sass: path.join(root, 'demo/src/sass/**/*.scss'),
|
sass: path.join(root, 'demo/src/sass/**/*.scss'),
|
||||||
js: path.join(root, 'demo/src/js/**/*'),
|
js: path.join(root, 'demo/src/js/**/*.js'),
|
||||||
},
|
},
|
||||||
|
|
||||||
// Output paths
|
// Output paths
|
||||||
|
4
src/js/controls.js
vendored
4
src/js/controls.js
vendored
@ -1627,8 +1627,8 @@ const controls = {
|
|||||||
Object.values(this.elements.buttons)
|
Object.values(this.elements.buttons)
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.forEach(button => {
|
.forEach(button => {
|
||||||
if (is.array(button)) {
|
if (is.array(button) || is.nodeList(button)) {
|
||||||
button.filter(Boolean).forEach(addProperty);
|
Array.from(button).filter(Boolean).forEach(addProperty);
|
||||||
} else {
|
} else {
|
||||||
addProperty(button);
|
addProperty(button);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user