aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGreg Denehy <greg@inclose.com.au>2017-04-30 19:42:45 +0930
committerGreg Denehy <greg@inclose.com.au>2017-04-30 19:42:45 +0930
commitb86b667d2552b32dd0a6d52a210fcf6bbb132867 (patch)
tree6e0d11529ee4c95cc298346129f0342943d0c530 /js
parente16508477ab541314452997d20aa6bdb5a8b0862 (diff)
downloadperl-software-in-gnu-guix-b86b667d2552b32dd0a6d52a210fcf6bbb132867.tar
perl-software-in-gnu-guix-b86b667d2552b32dd0a6d52a210fcf6bbb132867.tar.gz
Changes to fix failed jshint test related to Key Binding API
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 4e44b01..0bdcd12 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1234,14 +1234,14 @@
callback: callback,
key: binding.key,
description: binding.description
- }
+ };
}
else {
registeredKeyBindings[binding] = {
callback: callback,
key: null,
description: null
- }
+ };
}
}
@@ -4386,15 +4386,15 @@
// Check if this binding matches the pressed key
if( parseInt( key, 10 ) === event.keyCode ) {
- var value = registeredKeyBindings[ key ].callback;
+ var action = registeredKeyBindings[ key ].callback;
// Callback function
- if( typeof value === 'function' ) {
- value.apply( null, [ event ] );
+ if( typeof action === 'function' ) {
+ action.apply( null, [ event ] );
}
// String shortcuts to reveal.js API
- else if( typeof value === 'string' && typeof Reveal[ value ] === 'function' ) {
- Reveal[ value ].call();
+ else if( typeof action === 'string' && typeof Reveal[ action ] === 'function' ) {
+ Reveal[ action ].call();
}
triggered = true;