Implements onerror for JpegStreams

This commit is contained in:
Tim van der Meij 2014-06-18 22:53:16 +02:00
parent 2282c98500
commit 4c759527d1

View File

@ -1562,5 +1562,9 @@ function loadJpegStream(id, imageUrl, objs) {
img.onload = (function loadJpegStream_onloadClosure() {
objs.resolve(id, img);
});
img.onerror = (function loadJpegStream_onerrorClosure() {
objs.resolve(id, null);
warn('Error during JPEG image loading');
});
img.src = imageUrl;
}