pass in PDFJS as a module, not global

This commit is contained in:
Brian Gough 2016-10-13 11:25:56 +01:00
parent 71275efebe
commit 85d8c2ed2e

View file

@ -1,6 +1,7 @@
define [ define [
"base" "base"
], (App) -> "pdfjs-dist/build/pdf"
], (App, PDFJS) ->
# App = angular.module 'PDFRenderer', ['pdfAnnotations', 'pdfTextLayer'] # App = angular.module 'PDFRenderer', ['pdfAnnotations', 'pdfTextLayer']
App.factory 'PDFRenderer', ['$q', '$timeout', 'pdfAnnotations', 'pdfTextLayer', 'pdfSpinner', ($q, $timeout, pdfAnnotations, pdfTextLayer, pdfSpinner) -> App.factory 'PDFRenderer', ['$q', '$timeout', 'pdfAnnotations', 'pdfTextLayer', 'pdfSpinner', ($q, $timeout, pdfAnnotations, pdfTextLayer, pdfSpinner) ->