aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2017-03-25 10:37:00 +1100
committerSam Potts <me@sampotts.me>2017-03-25 10:37:00 +1100
commit1a05f352c71e52b98ff4c0753c35bb51a6bf10f0 (patch)
tree6a5832283a63df61810fbb5df124c387d81309a6 /src
parentbc323e905cb8380016334b466965e444bf6699e9 (diff)
downloadplyr-1a05f352c71e52b98ff4c0753c35bb51a6bf10f0.tar.lz
plyr-1a05f352c71e52b98ff4c0753c35bb51a6bf10f0.tar.xz
plyr-1a05f352c71e52b98ff4c0753c35bb51a6bf10f0.zip
Code formatting
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index b5fcb18f..5f5e8404 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -3515,10 +3515,10 @@
// Handle global presses
if (config.keyboardShortcuts.global) {
on(window, 'keydown keyup', function(event) {
- var code = getKeyCode(event),
- focused = getFocusElement(),
- allowed = [48, 49, 50, 51, 52, 53, 54, 56, 57, 75, 77, 70, 67],
- count = get().length;
+ var code = getKeyCode(event);
+ var focused = getFocusElement();
+ var allowed = [48, 49, 50, 51, 52, 53, 54, 56, 57, 75, 77, 70, 67];
+ var count = get().length;
// Only handle global key press if there's only one player
// and the key is in the allowed keys
@@ -3535,9 +3535,9 @@
}
function handleKey(event) {
- var code = getKeyCode(event),
- pressed = event.type === 'keydown',
- held = pressed && code === last;
+ var code = getKeyCode(event);
+ var pressed = event.type === 'keydown';
+ var held = pressed && code === last;
// If the event is bubbled from the media element
// Firefox doesn't get the keycode for whatever reason
@@ -3618,7 +3618,7 @@
case 77:
// M key
if (!held) {
- toggleMute()
+ toggleMute();
}
break;