aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-08-14 12:14:58 +1000
committerGitHub <noreply@github.com>2018-08-14 12:14:58 +1000
commit8fb8ae126013423c8990893f824e90fc76215028 (patch)
tree31a5a44364dd474dd076fa7aaef3f8db62a8506e /src/js/controls.js
parenteaeccd66ae6eda297a3eebac75fe542bed91d177 (diff)
parent90304369f444180597d5aa47ab622b663473a6a0 (diff)
downloadplyr-8fb8ae126013423c8990893f824e90fc76215028.tar.lz
plyr-8fb8ae126013423c8990893f824e90fc76215028.tar.xz
plyr-8fb8ae126013423c8990893f824e90fc76215028.zip
Merge pull request #1163 from sampotts/develop
Fix bug with nodeList for play buttons
Diffstat (limited to 'src/js/controls.js')
-rw-r--r--src/js/controls.js4
1 files 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);
}