[Pkg-javascript-commits] [pdf.js] 120/207: Implements onerror for JpegStreams
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 4c759527d19e0bab1c25be8f5e33a429fcb9a379
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Wed Jun 18 22:53:16 2014 +0200
Implements onerror for JpegStreams
---
src/shared/util.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/shared/util.js b/src/shared/util.js
index 3e47b78..3299816 100644
--- a/src/shared/util.js
+++ b/src/shared/util.js
@@ -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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list