mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #4375 from yurydelendik/reset-annot
Reset annotation stream; reset page annotation promise
This commit is contained in:
commit
fd6a152935
2 changed files with 3 additions and 0 deletions
|
@ -520,6 +520,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||
|
||||
delete this.operatorList;
|
||||
delete this.displayReadyPromise;
|
||||
delete this.annotationsPromise;
|
||||
this.objs.clear();
|
||||
this.pendingDestroy = false;
|
||||
},
|
||||
|
|
|
@ -216,6 +216,8 @@ var Annotation = (function AnnotationClosure() {
|
|||
evaluator.getOperatorList(this.appearance, resources, opList);
|
||||
opList.addOp(OPS.endAnnotation, []);
|
||||
promise.resolve(opList);
|
||||
|
||||
this.appearance.reset();
|
||||
}.bind(this));
|
||||
|
||||
return promise;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue