[Pkg-javascript-commits] [pdf.js] 121/207: Fixes AnnotationUtils in the extension build
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit c1c950ce74ffccb2e239e7b1fa6600468d6c5711
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Wed Jun 18 16:42:08 2014 -0500
Fixes AnnotationUtils in the extension build
---
src/display/annotation_helper.js | 1 +
web/page_view.js | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/display/annotation_helper.js b/src/display/annotation_helper.js
index f0ca1f9..3f0ea3e 100644
--- a/src/display/annotation_helper.js
+++ b/src/display/annotation_helper.js
@@ -250,3 +250,4 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {
getHtmlElement: getHtmlElement
};
})();
+PDFJS.AnnotationUtils = AnnotationUtils;
diff --git a/web/page_view.js b/web/page_view.js
index 066e2dc..c81f02b 100644
--- a/web/page_view.js
+++ b/web/page_view.js
@@ -17,7 +17,7 @@
/* globals RenderingStates, PDFView, PDFHistory, PDFFindBar, PDFJS, mozL10n,
CustomStyle, PresentationMode, scrollIntoView, SCROLLBAR_PADDING,
CSS_UNITS, UNKNOWN_SCALE, DEFAULT_SCALE, getOutputScale,
- TextLayerBuilder, cache, Stats, AnnotationUtils */
+ TextLayerBuilder, cache, Stats */
'use strict';
@@ -326,7 +326,8 @@ var PageView = function pageView(container, id, scale,
continue;
}
- element = AnnotationUtils.getHtmlElement(data, pdfPage.commonObjs);
+ element = PDFJS.AnnotationUtils.getHtmlElement(data,
+ pdfPage.commonObjs);
element.setAttribute('data-annotation-id', data.id);
mozL10n.translate(element);
--
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