Skip to content

Instantly share code, notes, and snippets.

@roykolak
Created June 26, 2011 19:56
Show Gist options
  • Save roykolak/1047912 to your computer and use it in GitHub Desktop.
Save roykolak/1047912 to your computer and use it in GitHub Desktop.
App = function(sender, store) {
return: {
...
next: function(person) {
store.getBuddiesWaiting(function(buddies) {
if(buddies.length === 0) {
store.addBuddyWaiting(person, function() {
sender.emptyQueueSms(person);
});
}
});
},
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment