Browse Source

Fixes AnnotationUtils in the extension build

Yury Delendik 11 years ago
parent
commit
c1c950ce74
  1. 1
      src/display/annotation_helper.js
  2. 5
      web/page_view.js

1
src/display/annotation_helper.js

@ -250,3 +250,4 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {
getHtmlElement: getHtmlElement getHtmlElement: getHtmlElement
}; };
})(); })();
PDFJS.AnnotationUtils = AnnotationUtils;

5
web/page_view.js

@ -17,7 +17,7 @@
/* globals RenderingStates, PDFView, PDFHistory, PDFFindBar, PDFJS, mozL10n, /* globals RenderingStates, PDFView, PDFHistory, PDFFindBar, PDFJS, mozL10n,
CustomStyle, PresentationMode, scrollIntoView, SCROLLBAR_PADDING, CustomStyle, PresentationMode, scrollIntoView, SCROLLBAR_PADDING,
CSS_UNITS, UNKNOWN_SCALE, DEFAULT_SCALE, getOutputScale, CSS_UNITS, UNKNOWN_SCALE, DEFAULT_SCALE, getOutputScale,
TextLayerBuilder, cache, Stats, AnnotationUtils */ TextLayerBuilder, cache, Stats */
'use strict'; 'use strict';
@ -326,7 +326,8 @@ var PageView = function pageView(container, id, scale,
continue; continue;
} }
element = AnnotationUtils.getHtmlElement(data, pdfPage.commonObjs); element = PDFJS.AnnotationUtils.getHtmlElement(data,
pdfPage.commonObjs);
element.setAttribute('data-annotation-id', data.id); element.setAttribute('data-annotation-id', data.id);
mozL10n.translate(element); mozL10n.translate(element);

Loading…
Cancel
Save