more is defined checks added

This commit is contained in:
Vladimir Enchev
2015-04-20 13:43:56 +03:00
committed by Erjan Gavalji
parent cffd0d54f7
commit 8b9c30f5ea

View File

@ -83,7 +83,9 @@ export function getComponentModule(elementName: string, namespace: string, attri
var i: number;
for (i = 0; i < properties.length - 1; i++) {
subObj = subObj[properties[i]];
if (types.isDefined(subObj)) {
subObj = subObj[properties[i]];
}
}
if (types.isDefined(subObj)) {