Make sure oldAbort is only called if the xhr object still exists.

This commit is contained in:
jeresig 2010-01-12 16:50:59 -05:00
parent 6776920301
commit 61983cbf17

View file

@ -455,9 +455,8 @@ jQuery.extend({
try {
var oldAbort = xhr.abort;
xhr.abort = function() {
oldAbort.call( xhr );
if ( xhr ) {
oldAbort.call( xhr );
xhr.readyState = 0;
}