]> git.parisson.com Git - pdf.js.git/commitdiff
Use unique variable names in toplevelPagesDict function.
authorKalervo Kujala <kkujala@>
Tue, 6 Sep 2011 22:17:06 +0000 (01:17 +0300)
committerKalervo Kujala <kkujala@>
Tue, 6 Sep 2011 22:17:06 +0000 (01:17 +0300)
pdf.js

diff --git a/pdf.js b/pdf.js
index b6a310f5cb53ba83cbd8bea2dc57f06097076589..14d44132d72c5d2efbaa565ccf504c46121716ec 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -3447,12 +3447,12 @@ var Catalog = (function() {
 
   constructor.prototype = {
     get toplevelPagesDict() {
-      var obj = this.catDict.get('Pages');
-      assertWellFormed(IsRef(obj), 'invalid top-level pages reference');
-      var obj = this.xref.fetch(obj);
-      assertWellFormed(IsDict(obj), 'invalid top-level pages dictionary');
+      var pagesObj = this.catDict.get('Pages');
+      assertWellFormed(IsRef(pagesObj), 'invalid top-level pages reference');
+      var xrefObj = this.xref.fetch(pagesObj);
+      assertWellFormed(IsDict(xrefObj), 'invalid top-level pages dictionary');
       // shadow the prototype getter
-      return shadow(this, 'toplevelPagesDict', obj);
+      return shadow(this, 'toplevelPagesDict', xrefObj);
     },
     get documentOutline() {
       function convertIfUnicode(str) {