Skip to content

Instantly share code, notes, and snippets.

@mklabs
Created October 13, 2010 13:02
Show Gist options
  • Save mklabs/623988 to your computer and use it in GitHub Desktop.
Save mklabs/623988 to your computer and use it in GitHub Desktop.
// 7: what issues do you see with the following code? how would you fix it?
(function() {
var foo;
dojo.xhrGet({
url : 'foo.php',
load : function(resp) {
foo = resp.foo;
}
});
if (foo) {
// run this important code
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment