Created
August 23, 2012 02:49
-
-
Save hampelm/3431618 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function code(geocoder, locations) { | |
setTimeout(function() { | |
geocoder(locations[0]); | |
console.log(locations[0]); | |
locations.shift(); | |
if(locations.length !== 0) { | |
code(geocoder, locations); | |
} | |
}, 1000); | |
} | |
_.each(geocoders, function(gc) { | |
code(_.clone(gc, locations)) | |
}); |
prashtx
commented
Aug 23, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment