diff options
author | Hakim El Hattab | 2013-03-17 08:21:17 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-03-17 08:21:17 -0400 |
commit | e74a10e364f2512cd9139b133576d0896463629c (patch) | |
tree | 800342621335771f839fe84e9e58bb465ed8c7c1 /js/reveal.js | |
parent | 92e605c69d1613b07823c8f2c6514a27fda90d6f (diff) |
enable keyboard/touch flags to change in runtime configure() call (closes #365)
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/js/reveal.js b/js/reveal.js index 2691237..c504cfa 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -306,9 +306,6 @@ var Reveal = (function(){ // Make sure we've got all the DOM elements we need setupDOM(); - // Subscribe to input - addEventListeners(); - // Updates the presentation to match the current configuration values configure(); @@ -394,6 +391,20 @@ var Reveal = (function(){ } } + postConfigure(); + + } + + /** + * Updates various parts of the presentatio after the + * configuration has changed. + */ + function postConfigure() { + + // Subscribe to input + removeEventListeners(); + addEventListeners(); + // Force a layout to make sure the current config is accounted for layout(); |