From 5ab01e2cd0e67949d795224449d8a8d581f9c94f Mon Sep 17 00:00:00 2001 From: Kalervo Kujala Date: Sat, 3 Sep 2011 21:41:50 +0300 Subject: [PATCH] Fix xref bug. Use this.xref instead of xref in fetchDestinations function. --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 71a734f63..cf9615875 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; }