When I talk about using jQuery's new Deferred objects in the context of AJAX, people will often ask my why I don't just use the "success" and "error" callbacks in the AJAX configuration hash. To this, I can only say that I find the deferred / promise aspects create more readable and enjoyable code. Along the same lines, I wanted to see if I could create a Deferred wrapper for the native JavaScript timeout functions (setTimeout() and clearTimeout()). While this does add a bit of new functional ...
Read More ยป