Created
October 2, 2018 14:51
-
-
Save nem035/fae032d6e6c767e69320f8f78c9d3ff3 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
var globalState; // callbacks have to talk through global state | |
httpGet(function callback1(value) { | |
globalState.callback1 = value; | |
}) | |
httpGet(function callback2(value) { | |
globalState.callback2 = value; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment