From f51067b00e8099bb576858e70db6e2fc44ce3d61 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 29 Oct 2012 08:27:20 -0400 Subject: fixed issue with dependency loader failing when there were 0 async scripts (#214) --- js/reveal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 2e3ee39..d92ee76 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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(); } -- cgit v1.2.3