more fixes

This commit is contained in:
Vladimir Enchev
2015-05-15 17:27:26 +03:00
parent 3a80949ee7
commit dd9e70fc6c
2 changed files with 12 additions and 10 deletions

View File

@ -77,12 +77,14 @@ export function getComponentModule(elementName: string, namespace: string, attri
var attrValue = <string>attributes[attr];
if (attr.indexOf(":") !== -1){
var platformName = attr.split(":")[0].trim();
if(platformName.toLowerCase() !== platform.device.os.toLowerCase()) {
continue;
}
}
if (attr.indexOf(":") !== -1) {
var platformName = attr.split(":")[0].trim();
if (platformName.toLowerCase() === platform.device.os.toLowerCase()) {
attr = attr.split(":")[1].trim();
} else {
continue;
}
}
if (attr.indexOf(".") !== -1) {
var subObj = instance;