Skip to content

Instantly share code, notes, and snippets.

@steveharoz
Last active June 28, 2016 15:32
Show Gist options
  • Save steveharoz/39695c18668d258a0156d012b86da2e7 to your computer and use it in GitHub Desktop.
Save steveharoz/39695c18668d258a0156d012b86da2e7 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.0.0-rc.2.min.js"></script>
<script>
function callback1(arg1) {
console.log("COMPLETED. arg1:" + arg1);
console.log(arg1)
}
function callback2(arg1, arg2) {
console.log("COMPLETED. arg1:" + arg1);
console.log(arg1)
}
d3.request("invalid:///url")
.post(callback1); // callback parameter is null (maybe because signature is bad?)
d3.request("invalid:///url")
.post(callback2); // callback parameter shows error
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment