From d080d8e175695288d9982a43dfd14bcd2cd9ce0b Mon Sep 17 00:00:00 2001 From: MattMo Date: Wed, 26 Jul 2023 17:37:39 -0700 Subject: [PATCH] Cleaned up the converter template and fixed a bug. --- ignite-template.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ignite-template.js b/ignite-template.js index e547a7f..c275e52 100644 --- a/ignite-template.js +++ b/ignite-template.js @@ -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); } }