from what I understand this
$.ajax({}).success(function(){...});
is deprecated so I should use done
$.ajax({}).done(function(){...});
however, this
$.ajax({
success: function(){...}
});
is not deprecated, right? what is its functionality difference from that:
$.ajax({}).done(function(){...});
can they be used interchangebly any time or are they different.
Is success
only called when function succeeds while done
is called all the time?