I have a few different code paths with multiple callbacks.
this.confirmJWT(
function() {
this.confirmVendorCode(
function() {
this.downloadFile(FORECAST);
}.bind(this)
);
}.bind(this)
);
I'm aware that people call this callback hell (actually just found http://callbackhell.com/ ), but I'm looking for the preferred way to write this browser code.