Cleaned up the converter template and fixed a bug.
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user