From 5adc2032c0d9d49a8b784d4a4f271999ad7e63a9 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 11 Mar 2019 15:03:13 +0100 Subject: [PATCH] use internal pointer for current slide --- js/reveal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/reveal.js b/js/reveal.js index 552ba5dd..616a9351 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' ) );