From: Ben Houston Date: Thu, 28 Feb 2013 21:05:06 +0000 (-0800) Subject: fixing an initialization bug when turning off controls and progress in initialization. X-Git-Tag: 2.3.0~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2767254d33c889ae6eee17ec69400a22107eb6ed;p=reveal.js.git fixing an initialization bug when turning off controls and progress in initialization. --- diff --git a/js/reveal.js b/js/reveal.js index d425a87..323d401 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -347,8 +347,11 @@ var Reveal = (function(){ dom.wrapper.classList.add( config.transition ); - dom.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none'; - dom.progress.style.display = ( config.progress && dom.progress ) ? 'block' : 'none'; + if (dom.controls) + dom.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none'; + + if (dom.progress) + dom.progress.style.display = ( config.progress && dom.progress ) ? 'block' : 'none'; if( config.rtl ) { dom.wrapper.classList.add( 'rtl' );