From f4bb211283c8270bccd69f89f369685a6090a282 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Fri, 13 May 2011 00:21:32 -0700 Subject: [PATCH] forgot another shadowing --- pdf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf.js b/pdf.js index 0461dd340..f7d75444c 100644 --- a/pdf.js +++ b/pdf.js @@ -2002,8 +2002,8 @@ var PDFDoc = (function() { var num = linearization ? linearization.numPages : this.catalog.numPages; - // overwrite the prototype getter - return this.numPages = num; + // shadow the prototype getter + return shadow(this, "numPages", num); }, getPage: function(n) { var linearization = this.linearization;