1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-07-29 19:00:21 +02:00

Reveal.configure() now works pre-initialization

This commit is contained in:
Hakim El Hattab
2020-05-27 15:34:12 +02:00
parent 5e4c5c33a9
commit eb026f79b4
5 changed files with 18 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ Reveal.initialize = options => {
* queuing up premature API calls and invoking all
* of them when Reveal.initialize is called.
*/
[ 'on', 'off', 'addEventListener', 'removeEventListener', 'registerPlugin' ].forEach( method => {
[ 'configure', 'on', 'off', 'addEventListener', 'removeEventListener', 'registerPlugin' ].forEach( method => {
Reveal[method] = ( ...args ) => {
enqueuedAPICalls.push( deck => deck[method].call( null, ...args ) );
}