Fixed for recent jQuery, where the xhr object is a jQuery wrapper and no... #1

Closed
wants to merge 1 commit into
from
View
8 src/jquery.ajaxretry.js
@@ -87,13 +87,7 @@
}
};
- // Save the XHR object for reuse!
- var xhr = original_ajax_func(settings);
- settings.xhr = function(){
- return xhr;
- };
-
- return xhr;
+ return original_ajax_func(settings);
},
ajaxRetrySetup = function(opts){
DEF_OPTS = $.extend(true, DEF_OPTS, opts);