Created
March 11, 2014 17:37
-
-
Save anonymous/9490883 to your computer and use it in GitHub Desktop.
This file contains 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
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