aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-02-17 19:34:15 +1100
committerSam Potts <sam@potts.es>2018-02-17 19:34:15 +1100
commitf1895a4cceecfcedca9761f63ce10351338fe047 (patch)
tree5d699b746992187e1e5cbef29d1b591cb0560fa6 /src/js/ui.js
parentc2a6306d469834df557f6fa0af58d8de7aa8de4e (diff)
downloadplyr-f1895a4cceecfcedca9761f63ce10351338fe047.tar.lz
plyr-f1895a4cceecfcedca9761f63ce10351338fe047.tar.xz
plyr-f1895a4cceecfcedca9761f63ce10351338fe047.zip
Pause button fix, polyfilled build, unminified builds
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index 5a52543d..d8d420b0 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -132,10 +132,8 @@ const ui = {
utils.toggleClass(this.elements.container, this.config.classNames.playing, this.playing);
utils.toggleClass(this.elements.container, this.config.classNames.stopped, this.paused);
- // Set aria state
- if (utils.is.nodeList(this.elements.buttons.play)) {
- Array.from(this.elements.buttons.play).forEach(button => utils.toggleState(button, this.playing));
- }
+ // Set ARIA state
+ utils.toggleState(this.elements.buttons.play, this.playing);
// Toggle controls
this.toggleControls(!this.playing);