Created
December 4, 2011 22:19
-
-
Save joshsmith/1431472 to your computer and use it in GitHub Desktop.
How should I be doing the callback?
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
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