[Pkg-javascript-commits] [pdf.js] 94/109: Delete, and clear, the `image` in `PDFThumbnailView_reset`
David Prévot
taffit at moszumanska.debian.org
Fri Sep 25 03:04:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit d7a90d83de4fed4c5cbebe870c9ecf98f5769660
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Fri Sep 11 13:42:10 2015 +0200
Delete, and clear, the `image` in `PDFThumbnailView_reset`
*Follow-up to PR 6299.*
---
web/pdf_thumbnail_view.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/pdf_thumbnail_view.js b/web/pdf_thumbnail_view.js
index 71f52ae..b8c54fe 100644
--- a/web/pdf_thumbnail_view.js
+++ b/web/pdf_thumbnail_view.js
@@ -160,6 +160,10 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {
this.canvas.height = 0;
delete this.canvas;
}
+ if (this.image) {
+ this.image.removeAttribute('src');
+ delete this.image;
+ }
},
update: function PDFThumbnailView_update(rotation) {
--
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