mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
forgot another shadowing
This commit is contained in:
parent
a4c5b6095b
commit
f4bb211283
1 changed files with 2 additions and 2 deletions
4
pdf.js
4
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue