Make sure that the xhr object still exists after the abort is called.

This commit is contained in:
jeresig 2010-01-12 21:44:37 -05:00
parent 1d8b3a9af2
commit b5f077ae6a

View file

@ -457,7 +457,9 @@ jQuery.extend({
xhr.abort = function() {
if ( xhr ) {
oldAbort.call( xhr );
xhr.readyState = 0;
if ( xhr ) {
xhr.readyState = 0;
}
}
onreadystatechange();