From: jeresig Date: Tue, 12 Jan 2010 21:50:59 +0000 (-0500) Subject: Make sure oldAbort is only called if the xhr object still exists. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=61983cbf176c599687c36ffbf4b64ae8697486a3 Make sure oldAbort is only called if the xhr object still exists. --- diff --git a/src/ajax.js b/src/ajax.js index 83e5bdc..02322ab 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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; }