From 922456c46c53fcc3a6dfe2762059cade2ab6e453 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Tue, 14 Aug 2018 12:13:00 +1000 Subject: [PATCH 1/2] Fix for nodeList as buttons --- src/js/controls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/controls.js b/src/js/controls.js index 35eba971..661ceb32 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -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); } From 90304369f444180597d5aa47ab622b663473a6a0 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Tue, 14 Aug 2018 12:13:16 +1000 Subject: [PATCH 2/2] Fix watch --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 270e2a71..18781797 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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