mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
more is defined checks added
This commit is contained in:

committed by
Erjan Gavalji

parent
cffd0d54f7
commit
8b9c30f5ea
@ -83,8 +83,10 @@ export function getComponentModule(elementName: string, namespace: string, attri
|
|||||||
|
|
||||||
var i: number;
|
var i: number;
|
||||||
for (i = 0; i < properties.length - 1; i++) {
|
for (i = 0; i < properties.length - 1; i++) {
|
||||||
|
if (types.isDefined(subObj)) {
|
||||||
subObj = subObj[properties[i]];
|
subObj = subObj[properties[i]];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (types.isDefined(subObj)) {
|
if (types.isDefined(subObj)) {
|
||||||
setPropertyValue(subObj, instanceModule, exports, subPropName, attrValue);
|
setPropertyValue(subObj, instanceModule, exports, subPropName, attrValue);
|
||||||
|
Reference in New Issue
Block a user