mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
more fixes
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user