From aca177cdf80fc3d6572576027055bb0bd503e823 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 6 Aug 2012 15:15:41 -0300 Subject: [PATCH] fix order of options extend and listener binding (closes #102) --- js/reveal.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();