Cleaned up the converter template and fixed a bug.

This commit is contained in:
MattMo 2023-07-26 17:37:39 -07:00
parent f531a518b9
commit d080d8e175

View File

@ -2612,15 +2612,13 @@ class converter extends IgniteTemplate {
if (child instanceof IgniteTemplate) { if (child instanceof IgniteTemplate) {
this.child = child; this.child = child;
this.child.construct(null, this.element);
} else if (child) { } else if (child) {
this.child = new html(child); this.child = new html(child);
this.child.construct(null, this.element);
} else { } else {
this.child = null; this.child = null;
} }
this.construct(null, null);
} }
onConverterChanged(newConverter) { onConverterChanged(newConverter) {
@ -2638,15 +2636,13 @@ class converter extends IgniteTemplate {
if (child instanceof IgniteTemplate) { if (child instanceof IgniteTemplate) {
this.child = child; this.child = child;
this.child.construct(null, this.element);
} else if (child) { } else if (child) {
this.child = new html(child); this.child = new html(child);
this.child.construct(null, this.element);
} else { } else {
this.child = null; this.child = null;
} }
this.construct(null, null);
} }
} }