aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-02-09 11:37:47 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-02-09 11:37:47 +0100
commit5ad66f3779a7b26e43f899753a26ef5e3fe9667f (patch)
tree59bc11a6fd6deb9d8370273c136a1f4aea34b6d4 /js
parent1749f0d019c4460e13530db19882079c4ec0a124 (diff)
downloadperl-software-in-gnu-guix-5ad66f3779a7b26e43f899753a26ef5e3fe9667f.tar
perl-software-in-gnu-guix-5ad66f3779a7b26e43f899753a26ef5e3fe9667f.tar.gz
docs for #1816 and remove showHelp
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/js/reveal.js b/js/reveal.js
index a5783e0..882149e 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1641,21 +1641,20 @@
* help is open, false means it's closed.
*/
function toggleHelp( override ){
-
+
if( typeof override === 'boolean' ) {
- override ? showHelp( true ) : closeOverlay();
+ override ? showHelp() : closeOverlay();
}
- else {
+ else {
if( dom.overlay ) {
closeOverlay();
}
else {
- showHelp( true );
+ showHelp();
}
}
}
-
/**
* Opens an overlay window with help material.
*/
@@ -4878,10 +4877,6 @@
navigatePrev: navigatePrev,
navigateNext: navigateNext,
- // Shows a help overlay with keyboard shortcuts
- showHelp: showHelp,
- toggleHelp: toggleHelp,
-
// Forces an update in slide layout
layout: layout,
@@ -4894,6 +4889,9 @@
// Returns an object with the available fragments as booleans (prev/next)
availableFragments: availableFragments,
+ // Toggles a help overlay with keyboard shortcuts
+ toggleHelp: toggleHelp,
+
// Toggles the overview mode on/off
toggleOverview: toggleOverview,