widget function param type change (#5714)

This commit is contained in:
ChiaNing
2019-11-08 16:19:19 +08:00
committed by pandamicro
parent 2c3082d879
commit abb8b55fad
+2 -1
View File
@@ -199,7 +199,8 @@ function align (node: INode, widget: WidgetComponent) {
Vec3.set(widget._lastPos, x, y, _tempPos.z);
}
function visitNode (node: Node) {
// TODO: type is hack, Change to the type actually used (Node or BaseNode) when BaseNode complete
function visitNode (node: any) {
const widget = node.getComponent(WidgetComponent);
if (widget) {
// @ts-ignore