This commit is contained in:
Sam Potts
2018-08-14 12:16:34 +10:00
parent 8fb8ae1260
commit 7dc4d9cd22
13 changed files with 21 additions and 17 deletions

4
dist/plyr.js vendored
View File

@ -2959,8 +2959,8 @@ typeof navigator === "object" && (function (global, factory) {
// Toggle classname when pressed property is set
Object.values(this.elements.buttons).filter(Boolean).forEach(function (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);
}