Fixes #2994. Not finding a transport now fires the error callbacks and doesn't make...
authorjaubourg <j@ubourg.net>
Sun, 16 Jan 2011 01:57:39 +0000 (02:57 +0100)
committerjaubourg <j@ubourg.net>
Sun, 16 Jan 2011 01:57:39 +0000 (02:57 +0100)
commit8ab23aec2c333834a6e442fa15b73125ba857afe
tree1dc62c9cfc6e16eccf71d54a9964f7c615c03fc3
parentd9cb69873c0be7cb2f65d24deeb6a01fada0661b
Fixes #2994. Not finding a transport now fires the error callbacks and doesn't make ajax return false. Had to revise how jsonp and script prefilters & transports work (better separation of concerns). Also took the opportunity to revise jXHR getRequestHeader and abort methods and enabled early transport garbage collection when the request completes.
src/ajax.js
src/ajax/jsonp.js
src/ajax/script.js
test/unit/ajax.js