fixed issue with dependency loader failing when there were 0 async scripts (#214)

This commit is contained in:
Hakim El Hattab
2012-10-29 08:27:20 -04:00
parent 5c5b3d34d9
commit f51067b00e
2 changed files with 14 additions and 12 deletions

View File

@ -231,8 +231,10 @@ var Reveal = (function(){
// Called once synchronous scritps finish loading
function proceed() {
// Load asynchronous scripts
head.js.apply( null, scriptsAsync );
if( scriptsAsync.length ) {
// Load asynchronous scripts
head.js.apply( null, scriptsAsync );
}
start();
}