From 8a8879aed27b9c11a3734eff6a708045cdaad41c Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 21 May 2021 20:25:26 +0200 Subject: [PATCH] XFA - Fix wrong function name --- src/core/xfa/config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/xfa/config.js b/src/core/xfa/config.js index 0cd61a1da..1f8894e8a 100644 --- a/src/core/xfa/config.js +++ b/src/core/xfa/config.js @@ -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, [ "", @@ -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 || ""; @@ -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, }); } } @@ -1159,7 +1159,7 @@ class TemplateCache extends XFAObject { this.maxEntries = getInteger({ data: attributes.maxEntries, defaultValue: 5, - validator: n => n >= 0, + validate: n => n >= 0, }); } }