mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
if condition fixed + test added
This commit is contained in:
@ -99,7 +99,9 @@ export function getComponentModule(elementName: string, namespace: string, attri
|
||||
} else {
|
||||
throw new Error("Code file atribute is valid only for pages!");
|
||||
}
|
||||
} else if (attributes[CSSFILE]) {
|
||||
}
|
||||
|
||||
if (attributes[CSSFILE]) {
|
||||
if (instance instanceof pages.Page) {
|
||||
var cssFilePath = attributes[CSSFILE].trim();
|
||||
if (cssFilePath.indexOf("~/") === 0) {
|
||||
|
Reference in New Issue
Block a user