diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-01-29 12:21:05 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-01-29 12:21:05 +0100 |
commit | 8e66876c4e5881d3a85516e0070094bc8b0d8b9f (patch) | |
tree | 02d29d36b453930f0b56e4d0f0f144619e76f04b | |
parent | c8d7451142520c3999335e5ca958d27402071f30 (diff) | |
download | fosdem-2018-presentation-8e66876c4e5881d3a85516e0070094bc8b0d8b9f.tar fosdem-2018-presentation-8e66876c4e5881d3a85516e0070094bc8b0d8b9f.tar.gz |
fix error when exiting overview
-rw-r--r-- | js/reveal.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/js/reveal.js b/js/reveal.js index ac21f33..ad2d5a3 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1074,8 +1074,8 @@ function transformSlides( transforms ) { // Pick up new transforms from arguments - if( transforms.layout ) slidesTransform.layout = transforms.layout; - if( transforms.overview ) slidesTransform.overview = transforms.overview; + if( typeof transforms.layout === 'string' ) slidesTransform.layout = transforms.layout; + if( typeof transforms.overview === 'string' ) slidesTransform.overview = transforms.overview; // Apply the transforms to the slides container if( slidesTransform.layout ) { @@ -1085,7 +1085,6 @@ transformElement( dom.slides, slidesTransform.overview ); } - } /** @@ -1780,8 +1779,6 @@ // Only proceed if enabled in config if( config.overview ) { - transformSlides( { overview: '' } ); - overview = false; dom.wrapper.classList.remove( 'overview' ); @@ -1811,6 +1808,8 @@ transformElement( background, '' ); } ); + transformSlides( { overview: '' } ); + slide( indexh, indexv ); layout(); @@ -2053,7 +2052,7 @@ document.documentElement.classList.remove( stateBefore.pop() ); } - // If the overview is active, re-activate it to update positions + // Update the overview if it's currently active if( isOverview() ) { updateOverview(); } |