From 36161c604594fc1dc454e195779f06977710a52d Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Tue, 9 Dec 2014 13:36:50 -0800 Subject: [PATCH] Fix other image loading problem. --- midp/media.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/midp/media.js b/midp/media.js index dce63d24..ab3aa780 100644 --- a/midp/media.js +++ b/midp/media.js @@ -361,8 +361,10 @@ ImagePlayer.prototype.realize = function() { this.image.src = URL.createObjectURL(new Blob([ imgData ])); }).bind(this)); } else { + this.image.onload = function() { + resolve(true); + }; this.image.src = this.url; - resolve(true); } }).bind(this)); }