Permalink
Browse files

Fix bug in abort functionality. We stored the deferred object instead…

… of the complete XHR object, so attempting an xhr.abort() caused a fatal
  • Loading branch information...
1 parent d437b21 commit e826edb4834595f498f144d9d8acb1d471370d42 @bcooksey bcooksey committed Feb 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jQuery.ajaxQueue.js
View
@@ -10,8 +10,8 @@ $.ajaxQueue = function( ajaxOpts ) {
// run the actual query
function doRequest( next ) {
- jqXHR = $.ajax( ajaxOpts )
- .done( dfd.resolve )
+ jqXHR = $.ajax( ajaxOpts );
+ jqXHR.done( dfd.resolve )
.fail( dfd.reject )
.then( next, next );
}

0 comments on commit e826edb

Please sign in to comment.