Skip to content

Commit

Permalink
syncFragments now returns all affected fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Mar 11, 2019
1 parent cef864a commit 69ee643
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2975,6 +2975,9 @@
*/
function syncSlide( slide ) {

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

syncBackground( slide );
syncFragments( slide );

Expand All @@ -2991,10 +2994,14 @@
* after reveal.js has already initialized.
*
* @param {HTMLElement} slide
* @return {Array} a list of the HTML fragments that were synced
*/
function syncFragments( slide ) {

sortFragments( slide.querySelectorAll( '.fragment' ) );
// Default to the current slide
slide = slide || Reveal.getCurrentSlide();

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

}

Expand Down

0 comments on commit 69ee643

Please sign in to comment.