marko 5.33.13 → 5.33.14
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.
|
@@ -592,8 +592,13 @@ function morphdom(fromNode, toNode, host, componentsContext) {
|
|
|
592
592
|
if (curFromNodeValue !== curToNodeValue) {
|
|
593
593
|
if (
|
|
594
594
|
isHydrate &&
|
|
595
|
+
toNextSibling &&
|
|
595
596
|
curFromNodeType === TEXT_NODE &&
|
|
596
|
-
|
|
597
|
+
toNextSibling.bW_ === TEXT_NODE &&
|
|
598
|
+
curFromNodeValue.startsWith(curToNodeValue) &&
|
|
599
|
+
toNextSibling.cm_.startsWith(
|
|
600
|
+
curFromNodeValue.slice(curToNodeValue.length)
|
|
601
|
+
))
|
|
597
602
|
{
|
|
598
603
|
// In hydrate mode we can use splitText to more efficiently handle
|
|
599
604
|
// adjacent text vdom nodes that were merged.
|
package/package.json
CHANGED
|
@@ -592,8 +592,13 @@ function morphdom(fromNode, toNode, host, componentsContext) {
|
|
|
592
592
|
if (curFromNodeValue !== curToNodeValue) {
|
|
593
593
|
if (
|
|
594
594
|
isHydrate &&
|
|
595
|
+
toNextSibling &&
|
|
595
596
|
curFromNodeType === TEXT_NODE &&
|
|
596
|
-
|
|
597
|
+
toNextSibling.___nodeType === TEXT_NODE &&
|
|
598
|
+
curFromNodeValue.startsWith(curToNodeValue) &&
|
|
599
|
+
toNextSibling.___nodeValue.startsWith(
|
|
600
|
+
curFromNodeValue.slice(curToNodeValue.length),
|
|
601
|
+
)
|
|
597
602
|
) {
|
|
598
603
|
// In hydrate mode we can use splitText to more efficiently handle
|
|
599
604
|
// adjacent text vdom nodes that were merged.
|