From 10af056f8f573936fb48fdb5a99764a6fa015398 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 3 Mar 2014 16:46:05 -0600 Subject: [PATCH] Reset annotation stream; reset page annotation promise --- src/display/api.js | 1 + src/shared/annotation.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/display/api.js b/src/display/api.js index 436a09a47..63a312da7 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -520,6 +520,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() { delete this.operatorList; delete this.displayReadyPromise; + delete this.annotationsPromise; this.objs.clear(); this.pendingDestroy = false; }, diff --git a/src/shared/annotation.js b/src/shared/annotation.js index b8d9ee80a..631aaf865 100644 --- a/src/shared/annotation.js +++ b/src/shared/annotation.js @@ -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;