mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Re-name the XFAFactory.numberPages
getter to XFAFactory.numPages
for consistency
All other similar getters are called `numPages` throughout the code-base, and improved consistency should always be a good thing.
This commit is contained in:
parent
0e5348180e
commit
0041230072
3 changed files with 16 additions and 16 deletions
|
@ -787,7 +787,7 @@ class PDFDocument {
|
|||
get numPages() {
|
||||
let num = 0;
|
||||
if (this.xfaFactory) {
|
||||
num = this.xfaFactory.numberPages;
|
||||
num = this.xfaFactory.numPages;
|
||||
} else if (this.linearization) {
|
||||
num = this.linearization.numPages;
|
||||
} else {
|
||||
|
|
|
@ -54,7 +54,7 @@ class XFAFactory {
|
|||
return this.dims[pageIndex];
|
||||
}
|
||||
|
||||
get numberPages() {
|
||||
get numPages() {
|
||||
if (!this.pages) {
|
||||
this._createPages();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue