fix order of options extend and listener binding (closes #102)
authorHakim El Hattab <hakim.elhattab@gmail.com>
Mon, 6 Aug 2012 18:15:41 +0000 (15:15 -0300)
committerHakim El Hattab <hakim.elhattab@gmail.com>
Mon, 6 Aug 2012 18:15:41 +0000 (15:15 -0300)
js/reveal.js

index 52df1b24fc1b03a08dcaba4ff9409b4367742d9a..1394af0f8721d677216ab1869ba8a02b517b8e98 100644 (file)
@@ -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();