1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Reset annotation stream; reset page annotation promise

This commit is contained in:
Yury Delendik 2014-03-03 16:46:05 -06:00
parent 6fbbcf5c93
commit 10af056f8f
2 changed files with 3 additions and 0 deletions

View file

@ -520,6 +520,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
delete this.operatorList;
delete this.displayReadyPromise;
delete this.annotationsPromise;
this.objs.clear();
this.pendingDestroy = false;
},

View file

@ -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;