mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Fixes cleaning up of the rendered pages
This commit is contained in:
parent
48e0deab7b
commit
bd7985a83b
2 changed files with 4 additions and 7 deletions
|
@ -1065,8 +1065,9 @@ var PDFView = {
|
|||
|
||||
cleanup: function pdfViewCleanup() {
|
||||
for (var i = 0, ii = this.pages.length; i < ii; i++) {
|
||||
if (this.pages[i]) {
|
||||
this.pages[i].resetRenderingState();
|
||||
if (this.pages[i] &&
|
||||
this.pages[i].renderingState !== RenderingStates.FINISHED) {
|
||||
this.pages[i].reset();
|
||||
}
|
||||
}
|
||||
this.pdfDocument.cleanup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue