Remove references to window.Plyr
This commit is contained in:
parent
33a11fb53a
commit
765c01e83d
17
dist/plyr.js
vendored
17
dist/plyr.js
vendored
@ -411,9 +411,6 @@ var toConsumableArray = function (arr) {
|
||||
var utils = {
|
||||
// Check variable types
|
||||
is: {
|
||||
plyr: function plyr(input) {
|
||||
return this.instanceof(input, window.Plyr);
|
||||
},
|
||||
object: function object(input) {
|
||||
return this.getConstructor(input) === Object;
|
||||
},
|
||||
@ -433,22 +430,22 @@ var utils = {
|
||||
return !this.nullOrUndefined(input) && Array.isArray(input);
|
||||
},
|
||||
weakMap: function weakMap(input) {
|
||||
return this.instanceof(input, window.WeakMap);
|
||||
return this.instanceof(input, WeakMap);
|
||||
},
|
||||
nodeList: function nodeList(input) {
|
||||
return this.instanceof(input, window.NodeList);
|
||||
return this.instanceof(input, NodeList);
|
||||
},
|
||||
element: function element(input) {
|
||||
return this.instanceof(input, window.Element);
|
||||
return this.instanceof(input, Element);
|
||||
},
|
||||
textNode: function textNode(input) {
|
||||
return this.getConstructor(input) === Text;
|
||||
},
|
||||
event: function event(input) {
|
||||
return this.instanceof(input, window.Event);
|
||||
return this.instanceof(input, Event);
|
||||
},
|
||||
cue: function cue(input) {
|
||||
return this.instanceof(input, window.TextTrackCue) || this.instanceof(input, window.VTTCue);
|
||||
return this.instanceof(input, TextTrackCue) || this.instanceof(input, VTTCue);
|
||||
},
|
||||
track: function track(input) {
|
||||
return this.instanceof(input, TextTrack) || !this.nullOrUndefined(input) && this.string(input.kind);
|
||||
@ -989,7 +986,7 @@ var utils = {
|
||||
var event = new CustomEvent(type, {
|
||||
bubbles: bubbles,
|
||||
detail: Object.assign({}, detail, {
|
||||
plyr: utils.is.plyr(this) ? this : null
|
||||
plyr: this
|
||||
})
|
||||
});
|
||||
|
||||
@ -4029,7 +4026,7 @@ function onChange() {
|
||||
}
|
||||
|
||||
// Trigger an event
|
||||
utils.dispatchEvent(this.target, this.active ? 'enterfullscreen' : 'exitfullscreen', true);
|
||||
utils.dispatchEvent.call(this.player, this.target, this.active ? 'enterfullscreen' : 'exitfullscreen', true);
|
||||
|
||||
// Trap focus in container
|
||||
if (!browser$2.isIos) {
|
||||
|
2
dist/plyr.js.map
vendored
2
dist/plyr.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js
vendored
2
dist/plyr.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js.map
vendored
2
dist/plyr.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -19,7 +19,7 @@ function onChange() {
|
||||
}
|
||||
|
||||
// Trigger an event
|
||||
utils.dispatchEvent(this.target, this.active ? 'enterfullscreen' : 'exitfullscreen', true);
|
||||
utils.dispatchEvent.call(this.player, this.target, this.active ? 'enterfullscreen' : 'exitfullscreen', true);
|
||||
|
||||
// Trap focus in container
|
||||
if (!browser.isIos) {
|
||||
|
@ -9,9 +9,6 @@ import { providers } from './types';
|
||||
const utils = {
|
||||
// Check variable types
|
||||
is: {
|
||||
plyr(input) {
|
||||
return this.instanceof(input, window.Plyr);
|
||||
},
|
||||
object(input) {
|
||||
return this.getConstructor(input) === Object;
|
||||
},
|
||||
@ -31,22 +28,22 @@ const utils = {
|
||||
return !this.nullOrUndefined(input) && Array.isArray(input);
|
||||
},
|
||||
weakMap(input) {
|
||||
return this.instanceof(input, window.WeakMap);
|
||||
return this.instanceof(input, WeakMap);
|
||||
},
|
||||
nodeList(input) {
|
||||
return this.instanceof(input, window.NodeList);
|
||||
return this.instanceof(input, NodeList);
|
||||
},
|
||||
element(input) {
|
||||
return this.instanceof(input, window.Element);
|
||||
return this.instanceof(input, Element);
|
||||
},
|
||||
textNode(input) {
|
||||
return this.getConstructor(input) === Text;
|
||||
},
|
||||
event(input) {
|
||||
return this.instanceof(input, window.Event);
|
||||
return this.instanceof(input, Event);
|
||||
},
|
||||
cue(input) {
|
||||
return this.instanceof(input, window.TextTrackCue) || this.instanceof(input, window.VTTCue);
|
||||
return this.instanceof(input, TextTrackCue) || this.instanceof(input, VTTCue);
|
||||
},
|
||||
track(input) {
|
||||
return this.instanceof(input, TextTrack) || (!this.nullOrUndefined(input) && this.string(input.kind));
|
||||
@ -547,7 +544,7 @@ const utils = {
|
||||
const event = new CustomEvent(type, {
|
||||
bubbles,
|
||||
detail: Object.assign({}, detail, {
|
||||
plyr: utils.is.plyr(this) ? this : null,
|
||||
plyr: this,
|
||||
}),
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user