Permalink
Browse files

Merge pull request #7 from royhaddad/patch-1

Added the option 'nounload'
  • Loading branch information...
2 parents 3202fb4 + 9821f2f commit 103641c720e7c3213ed7f8e83cd295745940d33f @blueimp committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 load-image.js
View
2 load-image.js
@@ -24,7 +24,7 @@
oUrl;
img.onerror = callback;
img.onload = function () {
- if (oUrl) {
+ if (oUrl && !options.nounload) {
loadImage.revokeObjectURL(oUrl);
}
callback(loadImage.scale(img, options));

0 comments on commit 103641c

Please sign in to comment.