Browse Source

fix order of options extend and listener binding (closes #102)

Hakim El Hattab 12 years ago
parent
commit
aca177cdf8
1 changed files with 4 additions and 3 deletions
  1. 4 3
      js/reveal.js

+ 4 - 3
js/reveal.js

@@ -124,11 +124,12 @@ var Reveal = (function(){
 			dom.controlsUp = document.querySelector( '.reveal .controls .up' );
 			dom.controlsDown = document.querySelector( '.reveal .controls .down' );
 		}
-
-		addEventListeners();
-
+		
 		// Copy options over to our config object
 		extend( config, options );
+		
+		// Subscribe to input
+		addEventListeners();
 
 		// Updates the presentation to match the current configuration values
 		configure();