1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +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:
Jonas Jenwald 2021-10-16 12:35:12 +02:00
parent 0e5348180e
commit 0041230072
3 changed files with 16 additions and 16 deletions

View file

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

View file

@ -54,7 +54,7 @@ class XFAFactory {
return this.dims[pageIndex];
}
get numberPages() {
get numPages() {
if (!this.pages) {
this._createPages();
}