Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2014 17:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9490883 to your computer and use it in GitHub Desktop.
Save anonymous/9490883 to your computer and use it in GitHub Desktop.
Meteor.call('method1', /* params, */ function (err, result) {
// method1 has returned.
if (!err) {
// there is no error so let's call method2
Meteor.call('method2', /* params, */ function (err, result) {
// method 2 has returned.
if (err) {
// alert to the user there was an error.
alert(err.reason);
}
});
} else {
// alert to the user there was an error.
alert(err.reason);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment