Update style.ts

pull/439/head
eguneys 6 years ago committed by GitHub
parent 1f399d6dde
commit a71e2bc958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,8 +65,27 @@ function applyDestroyStyle(vnode: VNode): void {
function applyRemoveStyle(vnode: VNode, rm: () => void): void {
var s = (vnode.data as VNodeData).style;
if (!s || !s.remove) {
rm();
return;
if (vnode.children) {
let itemsProcessed = 0;
vnode.children.forEach(node => {
if (node === null) {
itemsProcessed++;
if (itemsProcessed === vnode.children.length) {
rm();
}
return;
}
applyRemoveStyle(node, () => {
itemsProcessed++;
if (itemsProcessed === vnode.children.length) {
rm();
}
});
});
} else {
rm();
}
return;
}
if(!reflowForced) {
getComputedStyle(document.body).transform;

Loading…
Cancel
Save