From: Kalervo Kujala Date: Sat, 3 Sep 2011 18:41:50 +0000 (+0300) Subject: Fix xref bug. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5ab01e2cd0e67949d795224449d8a8d581f9c94f;p=pdf.js.git Fix xref bug. Use this.xref instead of xref in fetchDestinations function. --- diff --git a/pdf.js b/pdf.js index 71a734f..cf96158 100644 --- 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; }