Merge pull request #4970 from yurydelendik/AnnotationUtils
Fixes AnnotationUtils in the extension build
This commit is contained in:
		
						commit
						7a83291c14
					
				| @ -318,8 +318,6 @@ var Annotation = (function AnnotationClosure() { | ||||
| 
 | ||||
|   return Annotation; | ||||
| })(); | ||||
| PDFJS.Annotation = Annotation; | ||||
| 
 | ||||
| 
 | ||||
| var WidgetAnnotation = (function WidgetAnnotationClosure() { | ||||
| 
 | ||||
|  | ||||
| @ -250,3 +250,4 @@ var AnnotationUtils = (function AnnotationUtilsClosure() { | ||||
|     getHtmlElement: getHtmlElement | ||||
|   }; | ||||
| })(); | ||||
| PDFJS.AnnotationUtils = AnnotationUtils; | ||||
|  | ||||
| @ -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); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user