Commit f52c4a3d authored by John Resig's avatar John Resig

If the XHR object no longer exists assume that the request was aborted.

parent a64ad8b4
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment