Skip to content

Commit

Permalink
Always resolve with the fileupload object.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed Feb 13, 2012
1 parent 8354f73 commit 2730337
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/jquery.fileupload-ip.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery File Upload Image Processing Plugin 1.0
* jQuery File Upload Image Processing Plugin 1.0.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
Expand Down Expand Up @@ -96,10 +96,10 @@
}
}
files[index] = blob;
deferred.resolve();
deferred.resolveWith(that);
}, file);
} else {
deferred.resolve();
deferred.resolveWith(that);
}
}
);
Expand Down Expand Up @@ -134,7 +134,7 @@
that.element
.removeClass('fileupload-processing');
}
deferred.resolve();
deferred.resolveWith(that);
});
return deferred.promise();
});
Expand Down

0 comments on commit 2730337

Please sign in to comment.