Fixes #7868. ResponseText is now properly propagated for error callbacks.

This commit is contained in:
jaubourg 2011-01-09 04:53:29 +01:00
parent 69497c3fd7
commit d515068ee8
4 changed files with 34 additions and 9 deletions

View file

@ -464,6 +464,11 @@ jQuery.extend({
} else { // if not success, mark it as an error
error = error || statusText;
// Set responseText if needed
if ( response ) {
jXHR.responseText = response;
}
}
// Set data for the fake xhr object