always construct controls and progress bar at startup (closes #384)

This commit is contained in:
Hakim El Hattab 2013-03-30 22:54:57 -04:00
parent 5353404361
commit 6ece551f8a
2 changed files with 4 additions and 4 deletions

View file

@ -181,7 +181,7 @@ var Reveal = (function(){
dom.slides = document.querySelector( '.reveal .slides' );
// Progress bar
if( !dom.wrapper.querySelector( '.progress' ) && config.progress ) {
if( !dom.wrapper.querySelector( '.progress' ) ) {
var progressElement = document.createElement( 'div' );
progressElement.classList.add( 'progress' );
progressElement.innerHTML = '<span></span>';
@ -189,7 +189,7 @@ var Reveal = (function(){
}
// Arrow controls
if( !dom.wrapper.querySelector( '.controls' ) && config.controls ) {
if( !dom.wrapper.querySelector( '.controls' ) ) {
var controlsElement = document.createElement( 'aside' );
controlsElement.classList.add( 'controls' );
controlsElement.innerHTML = '<div class="navigate-left"></div>' +

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long