Ensure that we cancel any pending textLayer rendering operations when the viewer is closed (issue 7274)

This commit is contained in:
Jonas Jenwald 2016-07-29 20:51:37 +02:00
parent a824c6c4f6
commit 3904be8889
3 changed files with 24 additions and 14 deletions

View file

@ -229,6 +229,11 @@ var PDFPageView = (function PDFPageViewClosure() {
}
this.renderingState = RenderingStates.INITIAL;
this.resume = null;
if (this.textLayer) {
this.textLayer.cancel();
this.textLayer = null;
}
},
/**