@b9g/crank 0.5.3 → 0.5.5
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.
- package/crank.cjs +4 -1
- package/crank.cjs.map +1 -1
- package/crank.js +4 -1
- package/crank.js.map +1 -1
- package/dom.cjs +1 -1
- package/dom.cjs.map +1 -1
- package/dom.js +1 -1
- package/dom.js.map +1 -1
- package/package.json +5 -2
- package/umd.js +5 -2
- package/umd.js.map +1 -1
package/crank.js
CHANGED
|
@@ -543,7 +543,7 @@ function diffChildren(renderer, root, host, ctx, scope, parent, children, hydrat
|
|
|
543
543
|
// cleanup remaining retainers
|
|
544
544
|
for (; oi < oldLength; oi++) {
|
|
545
545
|
const ret = oldRetained[oi];
|
|
546
|
-
if (typeof ret === "object"
|
|
546
|
+
if (typeof ret === "object") {
|
|
547
547
|
(graveyard = graveyard || []).push(ret);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -1765,6 +1765,9 @@ function resumePropsIterator(ctx) {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
// TODO: async unmounting
|
|
1767
1767
|
function unmountComponent(ctx) {
|
|
1768
|
+
if (ctx.f & IsUnmounted) {
|
|
1769
|
+
return;
|
|
1770
|
+
}
|
|
1768
1771
|
clearEventListeners(ctx);
|
|
1769
1772
|
const callbacks = cleanupMap.get(ctx);
|
|
1770
1773
|
if (callbacks) {
|