Fix incorrect indentation, and remove else after return, in PDFPageView_update

This commit is contained in:
Jonas Jenwald 2015-09-23 12:52:55 +02:00
parent 1ae9ba1d64
commit 5e7ce9d62d

View File

@ -178,19 +178,21 @@ var PDFPageView = (function PDFPageViewClosure() {
}
}
if (this.canvas &&
(PDFJS.useOnlyCssZoom ||
(this.hasRestrictedScaling && isScalingRestricted))) {
if (this.canvas) {
if (PDFJS.useOnlyCssZoom ||
(this.hasRestrictedScaling && isScalingRestricted)) {
this.cssTransform(this.canvas, true);
return;
} else if (this.canvas && !this.zoomLayer) {
}
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);
},
/**