mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] package, vdom: condition always true, TS 3.7.2
Before this commit, a condition deemed always true made the building crash. The happened with TypeScript == 3.7.2 After this commit, the required typescript version has been changed, as well as the incriminated true condition
This commit is contained in:
committed by
aab-odoo
parent
a97144366d
commit
f83846e054
+1
-1
@@ -44,7 +44,7 @@
|
|||||||
"sass": "^1.16.1",
|
"sass": "^1.16.1",
|
||||||
"source-map-support": "^0.5.10",
|
"source-map-support": "^0.5.10",
|
||||||
"ts-jest": "^23.10.5",
|
"ts-jest": "^23.10.5",
|
||||||
"typescript": "^3.6.4",
|
"typescript": "^3.7.2",
|
||||||
"uglify-es": "^3.3.9"
|
"uglify-es": "^3.3.9"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|||||||
@@ -20,10 +20,8 @@ function htmlToVNode(node: ChildNode): VNode {
|
|||||||
attrs[attr.name] = attr.textContent;
|
attrs[attr.name] = attr.textContent;
|
||||||
}
|
}
|
||||||
const children: VNode[] = [];
|
const children: VNode[] = [];
|
||||||
if (node.hasChildNodes) {
|
for (let c of node.childNodes) {
|
||||||
for (let c of node.childNodes) {
|
children.push(htmlToVNode(c));
|
||||||
children.push(htmlToVNode(c));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return h((node as Element).tagName, { attrs }, children);
|
return h((node as Element).tagName, { attrs }, children);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user