Skip to content
Permalink
Browse files

Makes sure statusText always defaults to "error".

  • Loading branch information
jaubourg committed Feb 9, 2011
1 parent d92dc29 commit 2953d0481aacd38f1e2e1916ba6d18d2b10861d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 2953d04

Please sign in to comment.
You can’t perform that action at this time.