fixing an initialization bug when turning off controls and progress in initialization.

This commit is contained in:
Ben Houston 2013-02-28 13:05:06 -08:00
parent d2b6ed4726
commit 2767254d33
1 changed files with 5 additions and 2 deletions

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