Small UI tweaks and fix for instanceof issue

This commit is contained in:
Sam Potts
2018-01-31 19:33:00 +11:00
parent 2691c7c9d6
commit d76ef3ff91
16 changed files with 59 additions and 31 deletions

View File

@ -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,
}),
});