From b6fe577f6ba881dd3534a2bd31ad0a045927a9ff Mon Sep 17 00:00:00 2001 From: John Duane Date: Sat, 20 Sep 2014 13:33:47 -0600 Subject: [PATCH] Call hiddenImage.onload if image is cached. --- resemble.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resemble.js b/resemble.js index c38553d..f8c4f25 100644 --- a/resemble.js +++ b/resemble.js @@ -131,6 +131,9 @@ URL: https://github.com/Huddle/Resemble.js if (typeof fileData === 'string') { hiddenImage.src = fileData; + if (hiddenImage.complete) { + hiddenImage.onload(); + } } else if (typeof fileData.data !== 'undefined' && typeof fileData.width === 'number' && typeof fileData.height === 'number') {