Skip to content

Commit 4988f25

Browse files
committed
Golfies
1 parent b564d3f commit 4988f25

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/diff/children.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,6 @@ export function diffChildren(
130130
oldDom = insert(childVNode, oldDom, parentDom);
131131
} else if (typeof childVNode.type == 'function' && result !== UNDEFINED) {
132132
oldDom = result;
133-
let toResolve = 0;
134-
while ((oldDom && oldDom.nodeType == 8) || toResolve > 0) {
135-
if (oldDom && oldDom.nodeType == 8 && oldDom.data == '$s') {
136-
toResolve++;
137-
} else if (oldDom && oldDom.nodeType == 8 && oldDom.data == '/$s') {
138-
toResolve--;
139-
}
140-
oldDom = oldDom.nextSibling;
141-
}
142133
} else if (newDom) {
143134
oldDom = newDom.nextSibling;
144135
}

0 commit comments

Comments
 (0)