Merge pull request #7009 from KamiHQ/annotations-fix

[api-minor] Always expose data.title and data.contents for TextAnnotation
This commit is contained in:
Tim van der Meij 2016-02-22 22:59:38 +01:00
commit c53581f4e5

View File

@ -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, {});