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:
@@ -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 ) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user