success and error callbacks are passed to the Deferreds fail and success handler. Since $.ajax returns a Deferred already you shouldn't have to handle the callbacks explicitly.
↧