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-Tag: 1.4~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61983cbf176c599687c36ffbf4b64ae8697486a3;p=jquery.git Make sure oldAbort is only called if the xhr object still exists. --- diff --git a/src/ajax.js b/src/ajax.js index 83e5bdcaf..02322ab39 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; }