|
|
@ -61,10 +61,8 @@ var PDFAttachmentViewer = (function PDFAttachmentViewerClosure() { |
|
|
|
reset: function PDFAttachmentViewer_reset(keepRenderedCapability) { |
|
|
|
reset: function PDFAttachmentViewer_reset(keepRenderedCapability) { |
|
|
|
this.attachments = null; |
|
|
|
this.attachments = null; |
|
|
|
|
|
|
|
|
|
|
|
var container = this.container; |
|
|
|
// Remove the attachments from the DOM.
|
|
|
|
while (container.firstChild) { |
|
|
|
this.container.textContent = ''; |
|
|
|
container.removeChild(container.firstChild); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!keepRenderedCapability) { |
|
|
|
if (!keepRenderedCapability) { |
|
|
|
// NOTE: The *only* situation in which the `_renderedCapability` should
|
|
|
|
// NOTE: The *only* situation in which the `_renderedCapability` should
|
|
|
|