From 915e3233d1ac0c6b3069ca279b09b4428d24dc3a Mon Sep 17 00:00:00 2001
From: Jesse Hallett <[email protected]>
Date: Mon, 13 Sep 2010 16:36:04 -0700
Subject: [PATCH] Workaround for lack of call() method in IE
---
src/ajax.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/ajax.js b/src/ajax.js
index 78d9b24..a662f65 100644
a
|
b
|
jQuery.extend({ |
467 | 467 | var oldAbort = xhr.abort; |
468 | 468 | xhr.abort = function() { |
469 | 469 | if ( xhr ) { |
470 | | oldAbort.call( xhr ); |
| 470 | if (oldAbort.call) { |
| 471 | oldAbort.call( xhr ); |
| 472 | } else { |
| 473 | Function.prototype.call.call(oldAbort, xhr); |
| 474 | } |
471 | 475 | } |
472 | 476 | |
473 | 477 | onreadystatechange( "abort" ); |