Teact: Remove likely redundant code
This commit is contained in:
parent
b6982dcd46
commit
e544763ab9
@ -234,11 +234,6 @@ function initComponent(
|
|||||||
if (componentInstance.mountState === MountState.New) {
|
if (componentInstance.mountState === MountState.New) {
|
||||||
$element = mountComponent(componentInstance);
|
$element = mountComponent(componentInstance);
|
||||||
setupComponentUpdateListener(parentEl, $element, $parent, index);
|
setupComponentUpdateListener(parentEl, $element, $parent, index);
|
||||||
|
|
||||||
const $firstChild = $element.children[0];
|
|
||||||
if ($firstChild.type === VirtualType.Component) {
|
|
||||||
$element.children[0] = initComponent(parentEl, $firstChild, $element, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $element;
|
return $element;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user