Skip to content

Commit

Permalink
Merge pull request #13416 from calixteman/xfa_config
Browse files Browse the repository at this point in the history
XFA - Fix wrong function name
  • Loading branch information
timvandermeij committed May 21, 2021
2 parents d1d9b90 + 8a8879a commit b2ffebe
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit b2ffebe

Please sign in to comment.