Merge pull request #13456 from calixteman/clazz

Replace clazz by classNames
This commit is contained in:
calixteman 2021-05-28 12:18:27 +02:00 committed by GitHub
commit e499521b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1465,15 +1465,15 @@ class Draw extends XFAObject {
"borderMarginPadding" "borderMarginPadding"
); );
const clazz = ["xfaDraw"]; const classNames = ["xfaDraw"];
if (this.font) { if (this.font) {
clazz.push("xfaFont"); classNames.push("xfaFont");
} }
const attributes = { const attributes = {
style, style,
id: this[$uid], id: this[$uid],
class: clazz.join(" "), class: classNames.join(" "),
}; };
if (this.name) { if (this.name) {
@ -2012,14 +2012,14 @@ class ExclGroup extends XFAObject {
"borderMarginPadding", "borderMarginPadding",
"hAlign" "hAlign"
); );
const clazz = ["xfaExclgroup"]; const classNames = ["xfaExclgroup"];
const cl = layoutClass(this); const cl = layoutClass(this);
if (cl) { if (cl) {
clazz.push(cl); classNames.push(cl);
} }
attributes.style = style; attributes.style = style;
attributes.class = clazz.join(" "); attributes.class = classNames.join(" ");
if (this.name) { if (this.name) {
attributes.xfaName = this.name; attributes.xfaName = this.name;
@ -2257,16 +2257,16 @@ class Field extends XFAObject {
"hAlign" "hAlign"
); );
const clazz = ["xfaField"]; const classNames = ["xfaField"];
// If no font, font properties are inherited. // If no font, font properties are inherited.
if (this.font) { if (this.font) {
clazz.push("xfaFont"); classNames.push("xfaFont");
} }
const attributes = { const attributes = {
style, style,
id: this[$uid], id: this[$uid],
class: clazz.join(" "), class: classNames.join(" "),
}; };
if (this.name) { if (this.name) {
@ -3988,14 +3988,14 @@ class Subform extends XFAObject {
"borderMarginPadding", "borderMarginPadding",
"hAlign" "hAlign"
); );
const clazz = ["xfaSubform"]; const classNames = ["xfaSubform"];
const cl = layoutClass(this); const cl = layoutClass(this);
if (cl) { if (cl) {
clazz.push(cl); classNames.push(cl);
} }
attributes.style = style; attributes.style = style;
attributes.class = clazz.join(" "); attributes.class = classNames.join(" ");
if (this.name) { if (this.name) {
attributes.xfaName = this.name; attributes.xfaName = this.name;