aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2017-12-08 15:54:08 +0000
committerSam Potts <sam@potts.es>2017-12-08 15:54:08 +0000
commit82f81f4f735c74b7425a66b7c9ec6f0bd91ae7a2 (patch)
tree8a0f1839efbf7b91d346cc79b87ca6f5324df347 /src/js
parentc8990bd379d97f4eb14cc35aaa90caebfb7db220 (diff)
downloadplyr-82f81f4f735c74b7425a66b7c9ec6f0bd91ae7a2.tar.lz
plyr-82f81f4f735c74b7425a66b7c9ec6f0bd91ae7a2.tar.xz
plyr-82f81f4f735c74b7425a66b7c9ec6f0bd91ae7a2.zip
More Edge fixes and small UI bugs
Diffstat (limited to 'src/js')
-rw-r--r--src/js/utils.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/utils.js b/src/js/utils.js
index a0a551c4..d9dd3df1 100644
--- a/src/js/utils.js
+++ b/src/js/utils.js
@@ -29,22 +29,22 @@ const utils = {
return !this.nullOrUndefined(input) && Array.isArray(input);
},
weakMap(input) {
- return this.instanceof(input, WeakMap);
+ return this.instanceof(input, window.WeakMap);
},
nodeList(input) {
- return this.instanceof(input, NodeList);
+ return this.instanceof(input, window.NodeList);
},
element(input) {
- return this.instanceof(input, Element);
+ return this.instanceof(input, window.Element);
},
textNode(input) {
return this.getConstructor(input) === Text;
},
event(input) {
- return this.instanceof(input, Event);
+ return this.instanceof(input, window.Event);
},
cue(input) {
- return this.instanceof(input, TextTrackCue) || this.instanceof(input, VTTCue);
+ return this.instanceof(input, window.TextTrackCue) || this.instanceof(input, window.VTTCue);
},
track(input) {
return this.instanceof(input, TextTrack) || (!this.nullOrUndefined(input) && this.string(input.kind));