fixing an initialization bug when turning off controls and progress in initialization.
authorBen Houston <ben_houston@apple.com>
Thu, 28 Feb 2013 21:05:06 +0000 (13:05 -0800)
committerBen Houston <ben_houston@apple.com>
Thu, 28 Feb 2013 21:05:06 +0000 (13:05 -0800)
js/reveal.js

index d425a87aeb8173b97ff1b69c9f5d5bfdf6db98a9..323d401d5c7e139e5c115381a99ad4d97603b643 100644 (file)
@@ -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' );