Browse Source

Rename DocumentOutlineView to PDFOutlineView

Tim van der Meij 10 years ago
parent
commit
b17da309ed
  1. 2
      web/pdf_outline_view.js
  2. 4
      web/viewer.js

2
web/pdf_outline_view.js

@ -17,7 +17,7 @@
'use strict'; 'use strict';
var DocumentOutlineView = function documentOutlineView(options) { var PDFOutlineView = function documentOutlineView(options) {
var outline = options.outline; var outline = options.outline;
var outlineView = options.outlineView; var outlineView = options.outlineView;
while (outlineView.firstChild) { while (outlineView.firstChild) {

4
web/viewer.js

@ -19,7 +19,7 @@
PDFHistory, Preferences, SidebarView, ViewHistory, Stats, PDFHistory, Preferences, SidebarView, ViewHistory, Stats,
PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar, PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar,
PasswordPrompt, PresentationMode, HandTool, Promise, PasswordPrompt, PresentationMode, HandTool, Promise,
DocumentProperties, DocumentOutlineView, DocumentAttachmentsView, DocumentProperties, PDFOutlineView, DocumentAttachmentsView,
OverlayManager, PDFFindController, PDFFindBar, getVisibleElements, OverlayManager, PDFFindController, PDFFindBar, getVisibleElements,
watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState, watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState,
RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE, RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE,
@ -967,7 +967,7 @@ var PDFViewerApplication = {
Promise.all(promises).then(function() { Promise.all(promises).then(function() {
pdfDocument.getOutline().then(function(outline) { pdfDocument.getOutline().then(function(outline) {
var outlineView = document.getElementById('outlineView'); var outlineView = document.getElementById('outlineView');
self.outline = new DocumentOutlineView({ self.outline = new PDFOutlineView({
outline: outline, outline: outline,
outlineView: outlineView, outlineView: outlineView,
linkService: self linkService: self

Loading…
Cancel
Save