From: jeresig Date: Wed, 13 Jan 2010 02:44:37 +0000 (-0500) Subject: Make sure that the xhr object still exists after the abort is called. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e Make sure that the xhr object still exists after the abort is called. --- diff --git a/src/ajax.js b/src/ajax.js index 02322ab..8aa6a9a 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -457,7 +457,9 @@ jQuery.extend({ xhr.abort = function() { if ( xhr ) { oldAbort.call( xhr ); - xhr.readyState = 0; + if ( xhr ) { + xhr.readyState = 0; + } } onreadystatechange();