aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-27 22:47:42 +1000
committerGitHub <noreply@github.com>2018-06-27 22:47:42 +1000
commit4f5152f5265efed0a390cbe31bf6b3a174b70813 (patch)
tree82df86eb592e7c2d944e6920a78bb61085b93aca /src/js
parentdf458c5e7ae824fc0bf86462130ea9571229c273 (diff)
parentde9b53045aecb34cd6244327f9ccb7116b617e8b (diff)
downloadplyr-4f5152f5265efed0a390cbe31bf6b3a174b70813.tar.lz
plyr-4f5152f5265efed0a390cbe31bf6b3a174b70813.tar.xz
plyr-4f5152f5265efed0a390cbe31bf6b3a174b70813.zip
Merge pull request #1070 from mimse/fix_condition_check
Fixed condition check
Diffstat (limited to 'src/js')
-rw-r--r--src/js/controls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index d79aaee7..2e18debc 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -187,7 +187,7 @@ const controls = {
}
if ('class' in attributes) {
- if (attributes.class.includes(this.config.classNames.control)) {
+ if (!attributes.class.includes(this.config.classNames.control)) {
attributes.class += ` ${this.config.classNames.control}`;
}
} else {