Removed some Todo's that were no longer a TODO
This commit is contained in:
parent
3b0dce6fbe
commit
51f894c616
@ -6,8 +6,6 @@ import {
|
|||||||
NodeTreeRenderer
|
NodeTreeRenderer
|
||||||
} from "./renderers";
|
} from "./renderers";
|
||||||
|
|
||||||
// TODO consider using existence of renderer.remove to identify whether a VNode is ChildNode or not
|
|
||||||
// TODO Rework all below so we can determine per type how to handle it (not all represent a childNode of the host etc...)
|
|
||||||
// TODO Element renderer (for things that are already DOM-elements)
|
// TODO Element renderer (for things that are already DOM-elements)
|
||||||
export function getNodeMeta(vnode){
|
export function getNodeMeta(vnode){
|
||||||
if(vnode===undefined||vnode===null) return undefined; // Indicate it shouldn't render
|
if(vnode===undefined||vnode===null) return undefined; // Indicate it shouldn't render
|
||||||
@ -49,7 +47,6 @@ export function getNodeMeta(vnode){
|
|||||||
export function render(vnode, opts = {}) {
|
export function render(vnode, opts = {}) {
|
||||||
// TODO innerHTML, innerText and other tags/props that are trickyer then just mapping value to attribute (see NodeTreeRenderer)
|
// TODO innerHTML, innerText and other tags/props that are trickyer then just mapping value to attribute (see NodeTreeRenderer)
|
||||||
// TODO ref-prop (should it only return once all child els are created and appended to the child?!)
|
// TODO ref-prop (should it only return once all child els are created and appended to the child?!)
|
||||||
// TODO Proper updating of a previous rendered vnode (we're working on it!)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -182,7 +179,7 @@ export function render(vnode, opts = {}) {
|
|||||||
else
|
else
|
||||||
item.host.removeChild(oldChild.element);
|
item.host.removeChild(oldChild.element);
|
||||||
}
|
}
|
||||||
queuedItems.push(child);// TODO where should the new child be inserted...
|
queuedItems.push(child);
|
||||||
}
|
}
|
||||||
previous = child.item;
|
previous = child.item;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user