Skip to content

Commit e826edb

Browse files
committed
Fix bug in abort functionality. We stored the deferred object instead of the complete XHR object, so attempting an xhr.abort() caused a fatal
1 parent d437b21 commit e826edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jQuery.ajaxQueue.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ $.ajaxQueue = function( ajaxOpts ) {
1010

1111
// run the actual query
1212
function doRequest( next ) {
13-
jqXHR = $.ajax( ajaxOpts )
14-
.done( dfd.resolve )
13+
jqXHR = $.ajax( ajaxOpts );
14+
jqXHR.done( dfd.resolve )
1515
.fail( dfd.reject )
1616
.then( next, next );
1717
}

0 commit comments

Comments
 (0)