From 61983cbf176c599687c36ffbf4b64ae8697486a3 Mon Sep 17 00:00:00 2001 From: jeresig Date: Tue, 12 Jan 2010 16:50:59 -0500 Subject: [PATCH] Make sure oldAbort is only called if the xhr object still exists. --- src/ajax.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 1.7.10.4