[Pkg-javascript-commits] [pdf.js] 222/414: always expose data.title and data.content

David Prévot taffit at moszumanska.debian.org
Tue Jun 28 17:12:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 266cedd960c5d16e9ca7ce985e53097702b80d1f
Author: Xiliang Chen <xlchen1291 at gmail.com>
Date:   Fri Feb 19 13:50:25 2016 +1300

    always expose data.title and data.content
---
 src/core/annotation.js | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/core/annotation.js b/src/core/annotation.js
index 46a59c9..227013f 100644
--- a/src/core/annotation.js
+++ b/src/core/annotation.js
@@ -673,12 +673,8 @@ var TextAnnotation = (function TextAnnotationClosure() {
     }
 
     this.data.hasPopup = dict.has('Popup');
-    if (!this.data.hasPopup) {
-      // There is no associated Popup annotation, so the Text annotation
-      // must create its own popup.
-      this.data.title = stringToPDFString(dict.get('T') || '');
-      this.data.contents = stringToPDFString(dict.get('Contents') || '');
-    }
+    this.data.title = stringToPDFString(dict.get('T') || '');
+    this.data.contents = stringToPDFString(dict.get('Contents') || '');
   }
 
   Util.inherit(TextAnnotation, Annotation, {});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list