diff --git a/web/viewer.js b/web/viewer.js index f584c5d1f..c5f0b70ee 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -1134,6 +1134,8 @@ var ThumbnailView = function thumbnailView(container, pdfPage, id) { var DocumentOutlineView = function documentOutlineView(outline) { var outlineView = document.getElementById('outlineView'); + while (outlineView.firstChild) + outlineView.removeChild(outlineView.firstChild); function bindItemLink(domObj, item) { domObj.href = PDFView.getDestinationHash(item.dest);