$.ajax returns a jQuery XMLHttpRequest (jqXHR) object which wraps the $.promise object and passes through functions to it. So you can actually call the .done method directly on the $.ajax return.
Achievements
119
Karma
6,263
Total ProTip Views
Mongoose
Have at least one original repo where Ruby is the dominant language
$.ajax returns a jQuery XMLHttpRequest (jqXHR) object which wraps the $.promise object and passes through functions to it. So you can actually call the .done method directly on the $.ajax return.