Skip to content

Commit

Permalink
amber.js cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasPetton committed Jan 15, 2012
1 parent 14a6be6 commit 1c4d355
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/amber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c4d355

Please sign in to comment.