aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index f408048..552ba5d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2975,6 +2975,9 @@
*/
function syncSlide( slide ) {
+ // Default to the current slide
+ slide = slide || Reveal.getCurrentSlide();
+
syncBackground( slide );
syncFragments( slide );
@@ -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' ) );
}