diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-26 23:22:15 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-26 23:22:15 -0400 |
commit | e9b874112e59c9220a8fe88805ba7fa0f874f65f (patch) | |
tree | 148b0733717f5329ec7d675e5a368a828e6ec1ae /js | |
parent | e570265a67461cfc110208cbe8562ad937794da8 (diff) | |
download | fosdem-2018-presentation-e9b874112e59c9220a8fe88805ba7fa0f874f65f.tar fosdem-2018-presentation-e9b874112e59c9220a8fe88805ba7fa0f874f65f.tar.gz |
fixes bug where the .present class remained on previous slide (closes #88)
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 3387904..8ae46b6 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1,5 +1,5 @@ /*! - * reveal.js 1.5 r2 + * reveal.js 1.5 r3 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -731,6 +731,13 @@ var Reveal = (function(){ // Ensure that the previous slide is never the same as the current previousSlide = null; } + + // Solves an edge case where the previous slide maintains the + // 'present' class when navigating between adjacent vertical + // stacks + if( previousSlide ) { + previousSlide.classList.remove( 'present' ); + } } /** |