aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab2013-11-25 15:26:10 -0500
committerHakim El Hattab2013-11-25 15:26:10 -0500
commit0fb343f5bff517a50bc33839929472d54cb586ef (patch)
tree214f694e1ac124f28b58fe6f37f181481cd0b7a6 /js/reveal.js
parent3427561b64a45716e897758509bf23a743492dda (diff)
rewrite all fragment indices on startup
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 6c9dec3..14d5693 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -347,8 +347,12 @@ var Reveal = (function(){
if( y > 0 ) verticalSlide.classList.add( 'future' );
+ sortFragments( verticalSlide.querySelectorAll( '.fragment' ) );
+
} );
+ if( verticalSlides.length === 0 ) sortFragments( horizontalSlide.querySelectorAll( '.fragment' ) );
+
} );
}