fix error when reveal.js was initialized with no plugins
This commit is contained in:
parent
6410ed15aa
commit
b180d94e02
@ -539,6 +539,13 @@
|
|||||||
|
|
||||||
var pluginsToInitialize = Object.keys( plugins ).length;
|
var pluginsToInitialize = Object.keys( plugins ).length;
|
||||||
|
|
||||||
|
// If there are no plugins, skip this step
|
||||||
|
if( pluginsToInitialize === 0 ) {
|
||||||
|
loadAsyncDependencies();
|
||||||
|
}
|
||||||
|
// ... otherwise initialize plugins
|
||||||
|
else {
|
||||||
|
|
||||||
var afterPlugInitialized = function() {
|
var afterPlugInitialized = function() {
|
||||||
if( --pluginsToInitialize === 0 ) {
|
if( --pluginsToInitialize === 0 ) {
|
||||||
loadAsyncDependencies();
|
loadAsyncDependencies();
|
||||||
@ -569,6 +576,8 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads all async reveal.js dependencies.
|
* Loads all async reveal.js dependencies.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user