]> git.parisson.com Git - pdf.js.git/commitdiff
Fix xref bug.
authorKalervo Kujala <kkujala@>
Sat, 3 Sep 2011 18:41:50 +0000 (21:41 +0300)
committerKalervo Kujala <kkujala@>
Sat, 3 Sep 2011 18:41:50 +0000 (21:41 +0300)
Use this.xref instead of xref in fetchDestinations function.

pdf.js

diff --git a/pdf.js b/pdf.js
index 71a734f6358da8ee4c0dfadf1a06371071230d43..cf9615875b639b9dca593a7a20e5b643ca539224 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -3547,7 +3547,7 @@ var Catalog = (function() {
     },
     get destinations() {
       function fetchDestination(ref) {
-        var dest = xref.fetchIfRef(ref);
+        var dest = this.xref.fetchIfRef(ref);
         return IsDict(dest) ? dest.get('D') : dest;
       }