git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64ad8b
)
If the XHR object no longer exists assume that the request was aborted.
author
John Resig
<jeresig@gmail.com>
Wed, 26 Aug 2009 17:39:52 +0000
(17:39 +0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 26 Aug 2009 17:39:52 +0000
(17:39 +0000)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
c6b8d0f
..
7760593
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-370,7
+370,7
@@
jQuery.extend({
// Wait for a response to come back
var onreadystatechange = function(isTimeout){
// The request was aborted, clear the interval and decrement jQuery.active
- if ( xhr.readyState === 0 ) {
+ if ( !xhr || xhr.readyState === 0 ) {
if ( ival ) {
// clear poll interval
clearInterval( ival );