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

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