When should I use jQuery deferred's “then” method and when should I use the “pipe” method?
jQuery's Deferred has two functions which can be used to implement asynchronous chaining of functions: then() deferred.then( doneCallbacks, failCallbacks ) Returns: Deferred doneCallbacks A function, or array of functions, called when the Deferred is resolved. failCallbacks A function, or array of functions, called when the Deferred is rejected. pipe() deferred.pipe( [doneFilter] [, failFilter] ) Returns: Promise doneFilter An optional function that is called when the Deferred is resolved. failFilter An optional function that is called when the Deferred is rejected. I know then() has been