Merge pull request #1163 from sampotts/develop

Fix bug with nodeList for play buttons
This commit is contained in:
Sam Potts 2018-08-14 12:14:58 +10:00 committed by GitHub
commit 8fb8ae1260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ const paths = {
// Source paths
src: {
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'),
},
@ -55,7 +55,7 @@ const paths = {
// Source paths
src: {
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

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);
}