aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2019-03-11 15:03:13 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2019-03-11 15:03:13 +0100
commit5adc2032c0d9d49a8b784d4a4f271999ad7e63a9 (patch)
treea20522d78458bfce27af140ab0b062ec30330909 /js/reveal.js
parent69ee643846e059c7b49264831c632bdf9701f8e0 (diff)
downloadperl-software-in-gnu-guix-5adc2032c0d9d49a8b784d4a4f271999ad7e63a9.tar
perl-software-in-gnu-guix-5adc2032c0d9d49a8b784d4a4f271999ad7e63a9.tar.gz
use internal pointer for current slide
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 552ba5d..616a935 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2976,7 +2976,7 @@
function syncSlide( slide ) {
// Default to the current slide
- slide = slide || Reveal.getCurrentSlide();
+ slide = slide || currentSlide;
syncBackground( slide );
syncFragments( slide );
@@ -2999,7 +2999,7 @@
function syncFragments( slide ) {
// Default to the current slide
- slide = slide || Reveal.getCurrentSlide();
+ slide = slide || currentSlide;
return sortFragments( slide.querySelectorAll( '.fragment' ) );