From: Brendan Dahl Date: Thu, 26 Apr 2012 16:17:29 +0000 (-0700) Subject: Reset the outline sidebar on each load. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7eeeb17f0fba76fbc4bd06b5db44a8c98d2cfaae;p=pdf.js.git Reset the outline sidebar on each load. --- diff --git a/web/viewer.js b/web/viewer.js index f584c5d..c5f0b70 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);