mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-07 07:06:37 +02:00
support including plugins via <script> instead of dependencies
This commit is contained in:
@@ -45,7 +45,7 @@ window.Reveal.initialize = options => {
|
||||
* queuing up early API calls and invoking all of them
|
||||
* when Reveal.initialize is called.
|
||||
*/
|
||||
[ 'on', 'off', 'addEventListener', 'removeEventListener' ].forEach( method => {
|
||||
[ 'on', 'off', 'addEventListener', 'removeEventListener', 'registerPlugin' ].forEach( method => {
|
||||
window.Reveal[method] = ( ...args ) => {
|
||||
enqueuedAPICalls.push( deck => deck[method].call( null, ...args ) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user