Created
November 14, 2013 23:30
-
-
Save travis/7476315 to your computer and use it in GitHub Desktop.
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
| var query = new Parse.Query(Post); | |
| query.get("xWMyZ4YEGZ", { | |
| success: function(post) { | |
| var query = new Parse.Query(Commment); | |
| query.equalTo("postId", "xWMyZ4YEGZ"); | |
| query.first({ | |
| success: function(object) { | |
| // Now we can finally do something | |
| }, | |
| error: function(error) { | |
| // inner function error handling | |
| } | |
| }); | |
| }, | |
| error: function(object, error) { | |
| // outer function error handling | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment