From 2767254d33c889ae6eee17ec69400a22107eb6ed Mon Sep 17 00:00:00 2001
From: Ben Houston <ben_houston@apple.com>
Date: Thu, 28 Feb 2013 13:05:06 -0800
Subject: [PATCH] fixing an initialization bug when turning off controls and
 progress in initialization.

---
 js/reveal.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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' );
-- 
GitLab