mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] vdom: simplify vnode function
This is a snabbdom commit
This commit is contained in:
+1
-8
@@ -59,14 +59,7 @@ function vnode(
|
|||||||
elm: Element | Text | undefined
|
elm: Element | Text | undefined
|
||||||
): VNode {
|
): VNode {
|
||||||
let key = data === undefined ? undefined : data.key;
|
let key = data === undefined ? undefined : data.key;
|
||||||
return {
|
return {sel, data, children, text, elm, key};
|
||||||
sel: sel,
|
|
||||||
data: data,
|
|
||||||
children: children,
|
|
||||||
text: text,
|
|
||||||
elm: elm,
|
|
||||||
key: key
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user