The code for handling Ajax timeouts was broken (the abort was being called too early). Fixing this allows the test suite to work again.
This commit is contained in:
parent
ab551c2b14
commit
d81dfbcccf
1 changed files with 4 additions and 3 deletions
|
@ -393,11 +393,12 @@ jQuery.extend({
|
|||
setTimeout(function(){
|
||||
// Check to see if the request is still happening
|
||||
if ( xhr ) {
|
||||
// Cancel the request
|
||||
xhr.abort();
|
||||
|
||||
if( !requestDone )
|
||||
onreadystatechange( "timeout" );
|
||||
|
||||
// Cancel the request
|
||||
if ( xhr )
|
||||
xhr.abort();
|
||||
}
|
||||
}, s.timeout);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue