[Pkg-javascript-commits] [pdf.js] 96/106: Fix a typo causing a TypeError when attempting to call pdfHistory_clearHistoryState (issue 6121)

David Prévot taffit at moszumanska.debian.org
Sat Jun 20 21:35:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 7cb62089ad1a42286c81c643d4f1166642bd7460
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Tue Jun 16 13:16:12 2015 +0200

    Fix a typo causing a TypeError when attempting to call pdfHistory_clearHistoryState (issue 6121)
    
    Fixes 6121.
    
    Note: This "regressed" in PR 5823.
---
 web/viewer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/viewer.js b/web/viewer.js
index 36178a7..32ed428 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -796,7 +796,7 @@ var PDFViewerApplication = {
         // The browsing history is only enabled when the viewer is standalone,
         // i.e. not when it is embedded in a web page.
         if (!self.preferenceShowPreviousViewOnLoad) {
-          PDFHistory.clearHistoryState();
+          self.pdfHistory.clearHistoryState();
         }
         self.pdfHistory.initialize(self.documentFingerprint);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list