aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2017-11-05 01:13:00 +1100
committerSam Potts <me@sampotts.me>2017-11-05 01:13:00 +1100
commit8aaa9320505baec3575bc1e92f37225729ee88f6 (patch)
treeba1fde642a7fd025cc3f0901e40add98cecc6f9a /src/js/plyr.js
parent3cd6c2acf632cf9ca23bd06ed63698f094b14a1e (diff)
downloadplyr-8aaa9320505baec3575bc1e92f37225729ee88f6.tar.lz
plyr-8aaa9320505baec3575bc1e92f37225729ee88f6.tar.xz
plyr-8aaa9320505baec3575bc1e92f37225729ee88f6.zip
Cleanup
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index cc997094..224545a6 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -5,8 +5,6 @@
// License: The MIT License (MIT)
// ==========================================================================
-/* global jQuery */
-
import defaults from './defaults';
import types from './types';
import support from './support';
@@ -80,6 +78,7 @@ class Plyr {
};
// Captions
+ // TODO: captions.enabled should be in config?
this.captions = {
enabled: null,
tracks: null,
@@ -647,8 +646,7 @@ class Plyr {
const player = this;
// Nothing specified
- if (utils.is.empty(input)) {
- this.toggleCaptions(false);
+ if (!utils.is.string(input)) {
return player;
}
@@ -886,8 +884,8 @@ class Plyr {
}
// Check for support
- supports(mimeType) {
- return support.mime(this, mimeType);
+ supports(type) {
+ return support.mime.call(this, type);
}
// Destroy an instance