From 1c4d3553b43053fb7b67dd1dbf52d2a790337612 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Sun, 15 Jan 2012 22:07:37 +0100 Subject: [PATCH] amber.js cosmetics --- js/amber.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/amber.js b/js/amber.js index d417222b3..ef68378bd 100644 --- a/js/amber.js +++ b/js/amber.js @@ -192,10 +192,11 @@ amber = (function() { function loadNextJS() { loadJS(jsToLoad[0], function(){ - jsToLoad.shift(); - if (jsToLoad.length > 0) - loadNextJS(); - }); + jsToLoad.shift(); + if (jsToLoad.length > 0) { + loadNextJS(); + } + }); }; function loadJSViaScriptTag(url, callback) {