Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFA - Fix wrong function name #13416

Merged
merged 1 commit into from
May 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/core/xfa/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Area extends XFAObject {
this.level = getInteger({
data: attributes.level,
defaultValue: 0,
validator: n => n >= 1 && n <= 3,
validate: n => n >= 1 && n <= 3,
});
this.name = getStringOption(attributes.name, [
"",
Expand Down Expand Up @@ -403,7 +403,7 @@ class Equate extends XFAObject {
this.force = getInteger({
data: attributes.force,
defaultValue: 1,
validator: n => n === 0,
validate: n => n === 0,
});

this.from = attributes.from || "";
Expand Down Expand Up @@ -723,12 +723,12 @@ class PageOffset extends XFAObject {
this.x = getInteger({
data: attributes.x,
defaultValue: "useXDCSetting",
validator: n => true,
validate: n => true,
});
this.y = getInteger({
data: attributes.y,
defaultValue: "useXDCSetting",
validator: n => true,
validate: n => true,
});
}
}
Expand Down Expand Up @@ -1159,7 +1159,7 @@ class TemplateCache extends XFAObject {
this.maxEntries = getInteger({
data: attributes.maxEntries,
defaultValue: 5,
validator: n => n >= 0,
validate: n => n >= 0,
});
}
}
Expand Down