From db6f07250751d1f5b38665c2a5e14e72f90c955b Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Fri, 13 May 2011 00:23:27 -0700 Subject: [PATCH] fix a couple more shadowings --- pdf.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdf.js b/pdf.js index f7d75444c..19ffa979c 100644 --- a/pdf.js +++ b/pdf.js @@ -1795,16 +1795,16 @@ var Page = (function() { constructor.prototype = { get contents() { - return this.contents = this.pageDict.get("Contents"); + return shadow(this, "contents", this.pageDict.get("Contents")); }, get resources() { - return this.resources = this.pageDict.get("Resources"); + return shadow(this, "resources", this.pageDict.get("Resources")); }, get mediaBox() { var obj = this.pageDict.get("MediaBox"); - return this.mediaBox = ((IsArray(obj) && obj.length == 4) - ? obj - : null); + return shadow(this, "mediaBox", ((IsArray(obj) && obj.length == 4) + ? obj + : null)); }, display: function(gfx) { var xref = this.xref;