From: Andreas Gal Date: Fri, 13 May 2011 07:21:32 +0000 (-0700) Subject: forgot another shadowing X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f4bb211283c8270bccd69f89f369685a6090a282;p=pdf.js.git forgot another shadowing --- diff --git a/pdf.js b/pdf.js index 0461dd3..f7d7544 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;