Reputation: 233
Which jQuery version introduced .done
for $.ajax
calls?
I need to use .done
in $.ajax
call, but latest version 1.10.1 does not seem to include .done
.
Thank you
Upvotes: 1
Views: 528
Reputation: 22481
jqXHR object (and the .done
method) was introduced in jQuery 1.5. Quoting the official documentation:
Deprecation Notice: The
jqXHR.success()
,jqXHR.error()
, andjqXHR.complete()
callbacks are deprecated as of jQuery 1.8. To prepare your code for their eventual removal, usejqXHR.done()
,jqXHR.fail()
, andjqXHR.always()
instead.
.done()
was neither removed or deprecated, it works as expected in jQuery 1.10.1.
Upvotes: 0
Reputation: 133453
Its added in version: 1.5
, See the deferred.done docs and it is still supported
Upvotes: 2