From: Artur Adib Date: Thu, 16 Feb 2012 17:02:18 +0000 (-0500) Subject: Addressing reviewer comments X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9cf9c3622729eb85377cf94b484d832fe6311e2b;p=pdf.js.git Addressing reviewer comments --- diff --git a/src/core.js b/src/core.js index 9a8f516..1374522 100644 --- a/src/core.js +++ b/src/core.js @@ -112,7 +112,7 @@ var Page = (function PageClosure() { height: this.height }; if (!isArray(cropBox) || cropBox.length !== 4) - return shadow(this, 'cropBox', view); + return shadow(this, 'view', view); var mediaBox = this.mediaBox; var offsetX = mediaBox[0], offsetY = mediaBox[1]; @@ -123,7 +123,7 @@ var Page = (function PageClosure() { // effectively reduced to their intersection with the media box." cropBox = Util.intersect(cropBox, mediaBox); if (!cropBox) - return shadow(this, 'cropBox', view); + return shadow(this, 'view', view); var tl = this.rotatePoint(cropBox[0] - offsetX, cropBox[1] - offsetY); var br = this.rotatePoint(cropBox[2] - offsetX, cropBox[3] - offsetY); @@ -132,7 +132,7 @@ var Page = (function PageClosure() { view.width = Math.abs(tl.x - br.x); view.height = Math.abs(tl.y - br.y); - return shadow(this, 'cropBox', view); + return shadow(this, 'view', view); }, get annotations() { return shadow(this, 'annotations', this.inheritPageProp('Annots'));