Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Example of jquery.when
$.when( getTweets('austintexasgov'),
).done(function(atxArgs, greenlingArgs, momandpopsArgs){
var allTweets = [].concat(atxArgs[0]).concat(greenlingArgs[0]).concat(momandpopsArgs[0]);
var sortedTweets = sortTweets(allTweets);
var getTweets = function(user){
var url='' + user + '.json';
return $.get(url, {count:5}, null, 'jsonp');
// see it in action at
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment