diff options
author | Sam Potts <me@sampotts.me> | 2018-01-31 19:33:00 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2018-01-31 19:33:00 +1100 |
commit | d76ef3ff914e0dca57c6f1e730188975d98acaa8 (patch) | |
tree | 51705f63316edb6beb18e2e52c62fa89a7cd6aa9 /src/js/utils.js | |
parent | 2691c7c9d6ab5bcc18b29f2487b2f2e3515329c8 (diff) | |
download | plyr-d76ef3ff914e0dca57c6f1e730188975d98acaa8.tar.lz plyr-d76ef3ff914e0dca57c6f1e730188975d98acaa8.tar.xz plyr-d76ef3ff914e0dca57c6f1e730188975d98acaa8.zip |
Small UI tweaks and fix for instanceof issue
Diffstat (limited to 'src/js/utils.js')
-rw-r--r-- | src/js/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/utils.js b/src/js/utils.js index 7c277301..c362c62e 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -9,7 +9,7 @@ const utils = { // Check variable types is: { plyr(input) { - return this.instanceof(input, Plyr); + return this.instanceof(input, window.Plyr); }, object(input) { return this.getConstructor(input) === Object; @@ -587,7 +587,7 @@ const utils = { const event = new CustomEvent(type, { bubbles: utils.is.boolean(bubbles) ? bubbles : false, detail: Object.assign({}, detail, { - plyr: this instanceof Plyr ? this : null, + plyr: utils.is.plyr(this) ? this : null, }), }); |