From 9cf9c3622729eb85377cf94b484d832fe6311e2b Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Thu, 16 Feb 2012 12:02:18 -0500 Subject: [PATCH] Addressing reviewer comments --- src/core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.js b/src/core.js index 9a8f516d7..137452257 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'));