Permalink
Browse files

Merge pull request #17 from igorbernstein/extra_ie8_request

Be a little more defensive on types of inputs
  • Loading branch information...
2 parents f1abe48 + 892df6c commit 679b3feef171e579c09dd422f3fcb018010a25a6 @blueimp committed Mar 27, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 load-image.js
  2. +1 −1 load-image.min.js
  3. +1 −1 package.json
View
@@ -1,5 +1,5 @@
/*
- * JavaScript Load Image 1.3.1
+ * JavaScript Load Image 1.3.2
* https://github.com/blueimp/JavaScript-Load-Image
*
* Copyright 2011, Sebastian Tschan
@@ -39,7 +39,7 @@
url = oUrl = loadImage.createObjectURL(file);
// Store the file type for resize processing:
img._type = file.type;
- } else {
+ } else if(typeof file === "string") {
url = file;
}
if (url) {
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "blueimp-load-image",
- "version": "1.3.1",
+ "version": "1.3.2",
"title": "JavaScript Load Image",
"description": "JavaScript Load Image is a function to load images provided as File or Blob objects or via URL. It returns an optionally scaled HTML img or canvas element.",
"keywords": [

0 comments on commit 679b3fe

Please sign in to comment.