enable keyboard/touch flags to change in runtime configure() call (closes #365)
This commit is contained in:
parent
92e605c69d
commit
e74a10e364
2 changed files with 16 additions and 5 deletions
17
js/reveal.js
17
js/reveal.js
|
@ -306,9 +306,6 @@ var Reveal = (function(){
|
||||||
// Make sure we've got all the DOM elements we need
|
// Make sure we've got all the DOM elements we need
|
||||||
setupDOM();
|
setupDOM();
|
||||||
|
|
||||||
// Subscribe to input
|
|
||||||
addEventListeners();
|
|
||||||
|
|
||||||
// Updates the presentation to match the current configuration values
|
// Updates the presentation to match the current configuration values
|
||||||
configure();
|
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
|
// Force a layout to make sure the current config is accounted for
|
||||||
layout();
|
layout();
|
||||||
|
|
||||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue