Comment on Escape from Callback HellComments−jj213yIf you have to deal with lots of nested callbacks, it's probably worth to use a CPS transformation like Streamline.js. It makes your code a lot cleaner. As if it was written synchronously.https://github.com/Sage/streamlinejs http://en.wikipedia.org/wiki/Continuation-passing_style
Comments
If you have to deal with lots of nested callbacks, it's probably worth to use a CPS transformation like Streamline.js. It makes your code a lot cleaner. As if it was written synchronously.
https://github.com/Sage/streamlinejs http://en.wikipedia.org/wiki/Continuation-passing_style