Permalink
Browse files

Merge pull request #9 from joewood/master

Check for noRevoke breaks integration with jquery file upload.
  • Loading branch information...
2 parents 8f7d4b0 + 7598f8a commit b4f606e8bf3b7fe695aeaa55c2fddecd7908dc45 @blueimp committed Jul 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 load-image.js
View
@@ -24,7 +24,7 @@
oUrl;
img.onerror = callback;
img.onload = function () {
- if (oUrl && !options.noRevoke) {
+ if (oUrl && !(typeof(options)!="undefined" && options.noRevoke)) {
loadImage.revokeObjectURL(oUrl);
}
callback(loadImage.scale(img, options));

0 comments on commit b4f606e

Please sign in to comment.