Replaces typo (status instead of state) as observed in #9585.
This commit is contained in:
parent
e2ab2ba1d5
commit
5b92a5f5ec
|
@ -727,7 +727,7 @@ jQuery.extend({
|
|||
transport.send( requestHeaders, done );
|
||||
} catch (e) {
|
||||
// Propagate exception as error if not done
|
||||
if ( status < 2 ) {
|
||||
if ( state < 2 ) {
|
||||
done( -1, e );
|
||||
// Simply rethrow otherwise
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue