is defined checked added

This commit is contained in:
Vladimir Enchev
2015-04-20 09:49:54 +03:00
committed by Erjan Gavalji
parent 29ee9909b2
commit bac14bd29d

View File

@ -86,7 +86,9 @@ export function getComponentModule(elementName: string, namespace: string, attri
subObj = subObj[properties[i]];
}
if (types.isDefined(subObj)) {
setPropertyValue(subObj, instanceModule, exports, subPropName, attrValue);
}
} else {
setPropertyValue(instance, instanceModule, exports, attr, attrValue);
}