Comparing version 0.3.3 to 0.3.4
@@ -49,14 +49,6 @@ import {augmentor} from 'dom-augmentor'; | ||
let update = false; | ||
const updateEntry = (entry, node, isHole) => { | ||
const curr = entry.node; | ||
if (node !== curr) { | ||
if (curr) { | ||
const updateEntry = (entry, node) => { | ||
if (node !== entry.node) { | ||
if (entry.node) | ||
update = true; | ||
if (isHole) { | ||
// TODO: fix wired fragments too | ||
const {parentNode} = curr; | ||
if (parentNode) | ||
parentNode.replaceChild(node, curr); | ||
} | ||
} | ||
entry.node = node; | ||
@@ -70,6 +62,6 @@ } | ||
unrollHole(info, hole); | ||
updateEntry(entry, view(entry, hole), true); | ||
updateEntry(entry, view(entry, hole)); | ||
} | ||
else | ||
updateEntry(entry, hole, false); | ||
updateEntry(entry, hole); | ||
try { return entry.node; } | ||
@@ -76,0 +68,0 @@ finally { |
{ | ||
"name": "uland", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"main": "./cjs/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145948
1578