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 var num = linearization
? linearization.numPages ? linearization.numPages
: this.catalog.numPages; : this.catalog.numPages;
// overwrite the prototype getter // shadow the prototype getter
return this.numPages = num; return shadow(this, "numPages", num);
}, },
getPage: function(n) { getPage: function(n) {
var linearization = this.linearization; var linearization = this.linearization;