@lvce-editor/renderer-process 21.4.0 → 21.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -695,8 +695,10 @@ const setText$3 = ($Element, value) => {
|
|
|
695
695
|
$Element.nodeValue = value;
|
|
696
696
|
};
|
|
697
697
|
const removeChild = ($Element, index) => {
|
|
698
|
-
const $Child = $Element.
|
|
699
|
-
$Child
|
|
698
|
+
const $Child = $Element.childNodes[index];
|
|
699
|
+
if ($Child) {
|
|
700
|
+
$Child.remove();
|
|
701
|
+
}
|
|
700
702
|
};
|
|
701
703
|
const add$1 = ($Element, nodes, eventMap = {}) => {
|
|
702
704
|
renderInternal($Element, nodes, eventMap, eventMap);
|