From: Hakim El Hattab Date: Mon, 6 Aug 2012 18:15:41 +0000 (-0300) Subject: fix order of options extend and listener binding (closes #102) X-Git-Tag: 2.0.0~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aca177cdf80fc3d6572576027055bb0bd503e823;p=reveal.js.git fix order of options extend and listener binding (closes #102) --- diff --git a/js/reveal.js b/js/reveal.js index 52df1b2..1394af0 100644 --- a/js/reveal.js +++ b/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();