[Pkg-javascript-commits] [pdf.js] 49/116: Amend the docs for |disableAutoFetch| to mention that streaming must also be disabled

David Prévot taffit at moszumanska.debian.org
Fri Mar 6 16:20:00 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 daba13aebbc53145b7c6e139d8c974d7c30830f8
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Wed Jan 14 18:33:12 2015 +0100

    Amend the docs for |disableAutoFetch| to mention that streaming must also be disabled
---
 src/display/api.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/display/api.js b/src/display/api.js
index 185f10c..547fe6d 100644
--- a/src/display/api.js
+++ b/src/display/api.js
@@ -99,6 +99,9 @@ PDFJS.disableStream = (PDFJS.disableStream === undefined ?
  * Disable pre-fetching of PDF file data. When range requests are enabled PDF.js
  * will automatically keep fetching more data even if it isn't needed to display
  * the current page. This default behavior can be disabled.
+ *
+ * NOTE: It is also necessary to disable streaming, see above,
+ *       in order for disabling of pre-fetching to work correctly.
  * @var {boolean}
  */
 PDFJS.disableAutoFetch = (PDFJS.disableAutoFetch === undefined ?

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