Skip to content

Instantly share code, notes, and snippets.

@imsickofmaps
Created May 31, 2013 09:40
Show Gist options
  • Save imsickofmaps/5683935 to your computer and use it in GitHub Desktop.
Save imsickofmaps/5683935 to your computer and use it in GitHub Desktop.
// Single - Works
p.add_callback(function(result) { return self.send_sms(im, msg, recipients[0])});
// Fails
for (var i=0;i<recipients.length;i++){
p.add_callback(function(result) { return self.send_sms(im, msg, recipients[i])});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment