mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-10-26 19:53:23 +01: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