We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28d35b4 commit da76ed9Copy full SHA for da76ed9
render/domFor.js
@@ -1,18 +1,22 @@
1
"use strict"
2
3
var delayedRemoval = new WeakMap
4
-module.exports.delayedRemoval = delayedRemoval
5
6
-module.exports.domFor = function *domFor({dom, domSize}, {generation} = {}) {
+function *domFor({dom, domSize}, {generation} = {}) {
7
if (dom != null) do {
8
const {nextSibling} = dom
9
-
+
10
if (delayedRemoval.get(dom) === generation) {
11
yield dom
12
domSize--
13
}
14
15
dom = nextSibling
16
17
while (domSize)
18
19
+module.exports = {
20
+ delayedRemoval: delayedRemoval,
21
+ domFor: domFor,
22
+}
0 commit comments