Created
July 31, 2016 20:14
-
-
Save joelanman/c25460e29f33962e948d933b82a24c61 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
drawThing = function(data){ | |
// you have access to data here | |
} | |
getThing = function(done){ | |
$.ajax({ | |
url: "moop.com", | |
success: function(response){ | |
data = response.data; | |
done(data); | |
} | |
}); | |
} | |
} | |
// kick it all off | |
getThing(drawThing); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment