Rename DocumentAttachmentsView to PDFAttachmentView

This commit is contained in:
Tim van der Meij 2015-01-27 21:52:14 +01:00
parent 2c19d99a2e
commit 609e2a30e9
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
'use strict'; 'use strict';
var DocumentAttachmentsView = function documentAttachmentsView(options) { var PDFAttachmentView = function documentAttachmentsView(options) {
var attachments = options.attachments; var attachments = options.attachments;
var attachmentsView = options.attachmentsView; var attachmentsView = options.attachmentsView;
while (attachmentsView.firstChild) { while (attachmentsView.firstChild) {

View File

@ -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, PDFOutlineView, DocumentAttachmentsView, DocumentProperties, PDFOutlineView, PDFAttachmentView,
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,
@ -986,7 +986,7 @@ var PDFViewerApplication = {
}); });
pdfDocument.getAttachments().then(function(attachments) { pdfDocument.getAttachments().then(function(attachments) {
var attachmentsView = document.getElementById('attachmentsView'); var attachmentsView = document.getElementById('attachmentsView');
self.attachments = new DocumentAttachmentsView({ self.attachments = new PDFAttachmentView({
attachments: attachments, attachments: attachments,
attachmentsView: attachmentsView attachmentsView: attachmentsView
}); });