forgot another shadowing

This commit is contained in:
Andreas Gal 2011-05-13 00:21:32 -07:00
parent a4c5b6095b
commit f4bb211283

4
pdf.js
View File

@ -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;