aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-01-13 16:22:49 +0000
committerSam Potts <sam@potts.es>2020-01-13 16:22:49 +0000
commit166a27d0947f3e928788c399bc10105f5c4b490f (patch)
tree5a7f7a81a335dc06b6f12a4b0d9a7f7e5c0cbb3e
parent4f06e2eb71e79cea68809d4e8dd3420e032cb01c (diff)
downloadplyr-166a27d0947f3e928788c399bc10105f5c4b490f.tar.lz
plyr-166a27d0947f3e928788c399bc10105f5c4b490f.tar.xz
plyr-166a27d0947f3e928788c399bc10105f5c4b490f.zip
Comment clean up
-rw-r--r--src/js/listeners.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/listeners.js b/src/js/listeners.js
index 545b78fc..643b7dd3 100644
--- a/src/js/listeners.js
+++ b/src/js/listeners.js
@@ -390,7 +390,8 @@ class Listeners {
if (player.isHTML5 && player.isVideo && player.config.resetOnEnd) {
// Restart
player.restart();
- // call pause otherwise IE11 will start playing the video again
+
+ // Call pause otherwise IE11 will start playing the video again
player.pause();
}
});
@@ -665,7 +666,7 @@ class Listeners {
const code = event.keyCode ? event.keyCode : event.which;
const attribute = 'play-on-seeked';
- if (is.keyboardEvent(event) && (code !== 39 && code !== 37)) {
+ if (is.keyboardEvent(event) && code !== 39 && code !== 37) {
return;
}