aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/captions.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-17 01:34:11 +1000
committerGitHub <noreply@github.com>2018-06-17 01:34:11 +1000
commit3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42 (patch)
tree90075d3343777a67dc78fcec4c295b140961788e /src/js/captions.js
parentd4abb4b1438cb316aacae480e7b7e9b055a60b24 (diff)
parent599883e684cf72a631ea366d0cb821fcb1c3d013 (diff)
downloadplyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.tar.lz
plyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.tar.xz
plyr-3c9c1b4cdcd0eb9076c3f0bafbabb057ee140c42.zip
Merge pull request #1041 from sampotts/a11y-improvements
A11y improvements
Diffstat (limited to 'src/js/captions.js')
-rw-r--r--src/js/captions.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/captions.js b/src/js/captions.js
index 28d5cb91..732b2e38 100644
--- a/src/js/captions.js
+++ b/src/js/captions.js
@@ -15,7 +15,6 @@ import {
insertAfter,
removeElement,
toggleClass,
- toggleState,
} from './utils/elements';
import { on, triggerEvent } from './utils/events';
import fetch from './utils/fetch';
@@ -193,7 +192,7 @@ const captions = {
}
// Toggle state
- toggleState(this.elements.buttons.captions, active);
+ this.elements.buttons.captions.pressed = active;
// Add class hook
toggleClass(this.elements.container, activeClass, active);