yes jQuery.Deferred is a very elegant solution to nested callbacks et all....
I have got it at the heart of the Single Page Application Architecture I am building currently.
e.g.
stionaJS.DAL.authenticate(creds)
.pipe(listDomains)
.done(withMultiUserDomain)
.done(withSingleUserDomain)
.fail(failedAuthentication);
3 comments
[ 10.1 ms ] story [ 216 ms ] threade.g. stionaJS.DAL.authenticate(creds) .pipe(listDomains) .done(withMultiUserDomain) .done(withSingleUserDomain) .fail(failedAuthentication);