Skip to content

Instantly share code, notes, and snippets.

@ondrek
Created November 19, 2013 21:43
Show Gist options
  • Save ondrek/7553095 to your computer and use it in GitHub Desktop.
Save ondrek/7553095 to your computer and use it in GitHub Desktop.
terajsia implementacia
vsetkySubory = getFromApi('zoznamVsetkychSuborov');
vsetkySubory.forEach(function(subor, index){
vsetkySubory[index] = parseTemplate(getFromApi(subor));
callback();
})
function callback(){
if (i===vsetkySubory.length) {
downloadZip() } else { i++ }
}
function downloadZip(){
// teraz mame array vsetkySubory=[{subor1}, {subor2}, ..]
// kde su vyparsovane vsetky clanky -- hotovo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment