diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-08-14 23:34:19 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-08-14 23:34:19 +0200 |
commit | b3b8738238ce185329640204b5289d5ec507c5ed (patch) | |
tree | b9834728db1950ad3d243e977915ea5ce5037dc1 /js | |
parent | b9d9632531308a5d36a8c8bd02871506c217a44b (diff) | |
download | perl-software-in-gnu-guix-b3b8738238ce185329640204b5289d5ec507c5ed.tar perl-software-in-gnu-guix-b3b8738238ce185329640204b5289d5ec507c5ed.tar.gz |
avoid duplicate var
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index bb43188..90b21d2 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3773,10 +3773,11 @@ // While paused only allow resume keyboard events; 'b', '.'' var resumeKeyCodes = [66,190,191]; + var key; // Custom key bindings for togglePause should be able to resume if( typeof config.keyboard === 'object' ) { - for( var key in config.keyboard ) { + for( key in config.keyboard ) { if( config.keyboard[key] === 'togglePause' ) { resumeKeyCodes.push( parseInt( key, 10 ) ); } @@ -3792,7 +3793,7 @@ // 1. User defined key bindings if( typeof config.keyboard === 'object' ) { - for( var key in config.keyboard ) { + for( key in config.keyboard ) { // Check if this binding matches the pressed key if( parseInt( key, 10 ) === event.keyCode ) { |