Merge pull request #4969 from timvandermeij/image-loading

Implements onerror for JpegStreams
This commit is contained in:
Yury Delendik 2014-06-18 16:43:09 -05:00
commit c4ed02ec0d

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;
}