Commit b5f077ae authored by jeresig's avatar jeresig

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

parent 1d8b3a9a
...@@ -457,7 +457,9 @@ jQuery.extend({ ...@@ -457,7 +457,9 @@ jQuery.extend({
xhr.abort = function() { xhr.abort = function() {
if ( xhr ) { if ( xhr ) {
oldAbort.call( xhr ); oldAbort.call( xhr );
xhr.readyState = 0; if ( xhr ) {
xhr.readyState = 0;
}
} }
onreadystatechange(); onreadystatechange();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment