[Pkg-javascript-commits] [pdf.js] 18/174: Fix incorrect indentation, and remove `else` after `return`, in `PDFPageView_update`
David Prévot
taffit at moszumanska.debian.org
Thu Nov 19 18:45: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 5e7ce9d62d716ce30ca84bf5aa154d323a17d030
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Wed Sep 23 12:52:55 2015 +0200
Fix incorrect indentation, and remove `else` after `return`, in `PDFPageView_update`
---
web/pdf_page_view.js | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/web/pdf_page_view.js b/web/pdf_page_view.js
index f408faf..725acbd 100644
--- a/web/pdf_page_view.js
+++ b/web/pdf_page_view.js
@@ -178,19 +178,21 @@ var PDFPageView = (function PDFPageViewClosure() {
}
}
- if (this.canvas &&
- (PDFJS.useOnlyCssZoom ||
- (this.hasRestrictedScaling && isScalingRestricted))) {
- this.cssTransform(this.canvas, true);
- return;
- } else if (this.canvas && !this.zoomLayer) {
- this.zoomLayer = this.canvas.parentNode;
- this.zoomLayer.style.position = 'absolute';
+ if (this.canvas) {
+ if (PDFJS.useOnlyCssZoom ||
+ (this.hasRestrictedScaling && isScalingRestricted)) {
+ this.cssTransform(this.canvas, true);
+ return;
+ }
+ if (!this.zoomLayer) {
+ this.zoomLayer = this.canvas.parentNode;
+ this.zoomLayer.style.position = 'absolute';
+ }
}
if (this.zoomLayer) {
this.cssTransform(this.zoomLayer.firstChild);
}
- this.reset(/* keepZoomLayer = */ true, true);
+ this.reset(/* keepZoomLayer = */ true, /* keepAnnotations = */ true);
},
/**
--
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