]> git.parisson.com Git - pdf.js.git/commitdiff
fix a couple more shadowings
authorAndreas Gal <andreas.gal@gmail.com>
Fri, 13 May 2011 07:23:27 +0000 (00:23 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Fri, 13 May 2011 07:23:27 +0000 (00:23 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index f7d75444c51c1c3766490a2075aaadce678df0e6..19ffa979c61ca77c284acb2969cb513a061c9516 100644 (file)
--- 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;