diff options
author | Hakim El Hattab | 2013-07-26 10:03:59 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-07-26 10:03:59 -0400 |
commit | 53f1f110c8066b40c788b59e663d303446e3819d (patch) | |
tree | 7e6bed66ea1a11e8ccd13edc6002e2284e973df3 /js/reveal.js | |
parent | 03385d7245f8c0428b5f8d8578022fb3a60fdd12 (diff) |
ensure notes window fragment states are mirrored in main window #538
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index 41d3535..31639fa 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1898,8 +1898,9 @@ var Reveal = (function(){ } if( !slide && currentSlide ) { - var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' ); - if( visibleFragments.length ) { + var hasFragments = currentSlide.querySelectorAll( '.fragment' ).length > 0; + if( hasFragments ) { + var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' ); f = visibleFragments.length; } } |