Pass in a PDFViewer instance to PDFPresentationMode and use it to eliminate all references to PDFViewerApplication

This patch is the the first step towards to addressing issue 6158, which will be done by refactoring the code for setting/getting the current scale in `viewer.js`.
This commit is contained in:
Jonas Jenwald 2015-07-06 09:45:40 +02:00
parent 7a6a3f10ad
commit 6b2810f1f0
2 changed files with 14 additions and 12 deletions

View file

@ -220,6 +220,7 @@ var PDFViewerApplication = {
this.pdfPresentationMode = new PDFPresentationMode({
container: container,
viewer: viewer,
pdfViewer: this.pdfViewer,
pdfThumbnailViewer: this.pdfThumbnailViewer,
contextMenuItems: [
{ element: document.getElementById('contextFirstPage'),