]> source.dussan.org Git - jquery.git/commit
$.ajax now always returns an object implementing the Promise interface. Fixes #10944...
authorjaubourg <j@ubourg.net>
Sun, 1 Apr 2012 23:54:19 +0000 (01:54 +0200)
committerjaubourg <j@ubourg.net>
Sun, 1 Apr 2012 23:54:19 +0000 (01:54 +0200)
commit395612bb152660226b93f7f096cd0146fc06991e
tree12a7c301f48a461245f69857a840e5d6e76e24da
parenta29d482894a844724f4386f2fed0edf9cf70c069
$.ajax now always returns an object implementing the Promise interface. Fixes #10944. Unit tests amended.
For back-compat, in case of an early abort, callbacks passed in the options are not called (while subsequent callbacks attached to the returned Promise are).
For early abort triggered by returning false in beforeSend, statusText is "canceled".
src/ajax.js
test/unit/ajax.js