[Pkg-javascript-commits] [pdf.js] 60/207: Protects PDFJS.disableXXX == true from change
David Prévot
taffit at moszumanska.debian.org
Mon Jul 28 15:36:30 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 3b405cf6118ede8d82ff9b1abf873c08812cdc1f
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Thu Jun 12 12:40:59 2014 -0500
Protects PDFJS.disableXXX == true from change
---
web/viewer.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/web/viewer.js b/web/viewer.js
index 2b529a5..7d6bfc9 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -223,21 +223,33 @@ var PDFView = {
var initializedPromise = Promise.all([
Preferences.get('enableWebGL').then(function resolved(value) {
+ if (PDFJS.disableWebGL === true) {
+ return;
+ }
PDFJS.disableWebGL = !value;
}),
Preferences.get('sidebarViewOnLoad').then(function resolved(value) {
self.preferenceSidebarViewOnLoad = value;
}),
Preferences.get('disableTextLayer').then(function resolved(value) {
+ if (PDFJS.disableTextLayer === true) {
+ return;
+ }
PDFJS.disableTextLayer = value;
}),
Preferences.get('disableRange').then(function resolved(value) {
+ if (PDFJS.disableRange === true) {
+ return;
+ }
PDFJS.disableRange = value;
}),
Preferences.get('disableAutoFetch').then(function resolved(value) {
PDFJS.disableAutoFetch = value;
}),
Preferences.get('disableFontFace').then(function resolved(value) {
+ if (PDFJS.disableFontFace === true) {
+ return;
+ }
PDFJS.disableFontFace = value;
}),
Preferences.get('useOnlyCssZoom').then(function resolved(value) {
--
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