Replaces text selection example

This commit is contained in:
Yury Delendik 2014-12-19 18:10:57 -06:00
parent 2565e627a3
commit 513a3d8c91
10 changed files with 119 additions and 175 deletions

View file

@ -103,7 +103,9 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
element = PDFJS.AnnotationUtils.getHtmlElement(data,
pdfPage.commonObjs);
element.setAttribute('data-annotation-id', data.id);
mozL10n.translate(element);
if (typeof mozL10n !== 'undefined') {
mozL10n.translate(element);
}
var rect = data.rect;
var view = pdfPage.view;