From d76ef3ff914e0dca57c6f1e730188975d98acaa8 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Wed, 31 Jan 2018 19:33:00 +1100 Subject: Small UI tweaks and fix for instanceof issue --- src/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/js/utils.js') 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, }), }); -- cgit v1.2.3