git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d92dc29
)
Makes sure statusText always defaults to "error".
author
jaubourg
<j@ubourg.net>
Wed, 9 Feb 2011 14:26:34 +0000
(15:26 +0100)
committer
jaubourg
<j@ubourg.net>
Wed, 9 Feb 2011 14:26:34 +0000
(15:26 +0100)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
76f9834
..
15ad6a8
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-509,7
+509,7
@@
jQuery.extend({
// We extract error from statusText
// then normalize statusText and status for non-aborts
error = statusText;
- if( status ) {
+ if( !statusText || status ) {
statusText = "error";
if ( status < 0 ) {
status = 0;