mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Fix a typo, in the Catalog.numPages
getter, than prevents shadowing from working correctly
Looking at the blame, it seems that this typo was present even before PR 700 (almost six years ago). The result of using `'num'`, rather than the *correct* `'numPages'` string, is that the `Catalog.numPages` getter isn't actually being shadowed.
This commit is contained in:
parent
4a74cc418c
commit
15f0963f51
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ var Catalog = (function CatalogClosure() {
|
|||
'page count in top level pages object is not an integer'
|
||||
);
|
||||
// shadow the prototype getter
|
||||
return shadow(this, 'num', obj);
|
||||
return shadow(this, 'numPages', obj);
|
||||
},
|
||||
get destinations() {
|
||||
function fetchDestination(dest) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue