Skip to content

Commit

Permalink
Pass options along to the _resizeImage method.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed Mar 7, 2012
1 parent 9737048 commit 33650a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 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.3
* jQuery File Upload Image Processing Plugin 1.0.4
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
Expand Down Expand Up @@ -64,13 +64,13 @@

// Resizes the image file at the given index and stores the created blob
// at the original position of the files list, returns a Promise object:
_resizeImage: function (files, index) {
_resizeImage: function (files, index, options) {
var that = this,
options = this.options,
file = files[index],
deferred = $.Deferred(),
canvas,
blob;
options = options || this.options;
loadImage(
file,
function (img) {
Expand Down Expand Up @@ -127,7 +127,8 @@
var deferred = $.Deferred();
that._resizeImage(
data.files,
index
index,
options
).done(function () {
that._processing -= 1;
if (that._processing === 0) {
Expand Down

0 comments on commit 33650a9

Please sign in to comment.