Skip to content

Instantly share code, notes, and snippets.

@joshsmith
Created December 4, 2011 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joshsmith/1431472 to your computer and use it in GitHub Desktop.
Save joshsmith/1431472 to your computer and use it in GitHub Desktop.
How should I be doing the callback?
user.save().on('success', function(user) {
callback(user);
})
.on('failure', function(error) {
callback(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment