Browse Source

Call hiddenImage.onload if image is cached.

pull/28/head
John Duane 10 years ago
parent
commit
b6fe577f6b
  1. 3
      resemble.js

3
resemble.js

@ -131,6 +131,9 @@ URL: https://github.com/Huddle/Resemble.js
if (typeof fileData === 'string') { if (typeof fileData === 'string') {
hiddenImage.src = fileData; hiddenImage.src = fileData;
if (hiddenImage.complete) {
hiddenImage.onload();
}
} else if (typeof fileData.data !== 'undefined' } else if (typeof fileData.data !== 'undefined'
&& typeof fileData.width === 'number' && typeof fileData.width === 'number'
&& typeof fileData.height === 'number') { && typeof fileData.height === 'number') {

Loading…
Cancel
Save