mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
is defined checked added
This commit is contained in:

committed by
Erjan Gavalji

parent
29ee9909b2
commit
bac14bd29d
@ -86,7 +86,9 @@ export function getComponentModule(elementName: string, namespace: string, attri
|
||||
subObj = subObj[properties[i]];
|
||||
}
|
||||
|
||||
setPropertyValue(subObj, instanceModule, exports, subPropName, attrValue);
|
||||
if (types.isDefined(subObj)) {
|
||||
setPropertyValue(subObj, instanceModule, exports, subPropName, attrValue);
|
||||
}
|
||||
} else {
|
||||
setPropertyValue(instance, instanceModule, exports, attr, attrValue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user