[Pkg-javascript-commits] [pdf.js] 16/246: Initialize PDFView.url = ''

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:20 UTC 2014


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

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

commit bb13fb939ee89fecc53d7ab1714ef0f465075238
Author: Rob Wu <rob at robwu.nl>
Date:   Thu Jul 24 23:37:31 2014 +0200

    Initialize PDFView.url = ''
    
    The absence of this property caused the following error in PDFView.download:
    
       Cannot read property 'split' of undefined
    
    This property was unset when the PDF was loaded through a typed array instead
    of a URL. With the fix, the file name will default to "document.pdf", as
    defined by getPDFFileNameFromURL in web/ui_utils.js
---
 web/viewer.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web/viewer.js b/web/viewer.js
index 7250fa7..1be81e0 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -128,6 +128,7 @@ var PDFView = {
   isViewerEmbedded: (window.parent !== window),
   idleTimeout: null,
   currentPosition: null,
+  url: '',
 
   // called once when the document is loaded
   initialize: function pdfViewInitialize() {

-- 
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