Skip to content

Commit

Permalink
use internal pointer for current slide
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Mar 11, 2019
1 parent 69ee643 commit 5adc203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2976,7 +2976,7 @@
function syncSlide( slide ) {

// Default to the current slide
slide = slide || Reveal.getCurrentSlide();
slide = slide || currentSlide;

syncBackground( slide );
syncFragments( slide );
Expand All @@ -2999,7 +2999,7 @@
function syncFragments( slide ) {

// Default to the current slide
slide = slide || Reveal.getCurrentSlide();
slide = slide || currentSlide;

return sortFragments( slide.querySelectorAll( '.fragment' ) );

Expand Down

0 comments on commit 5adc203

Please sign in to comment.