mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
When XML fragments without code not getting context from parent
This commit is contained in:
@@ -63,7 +63,7 @@ function loadCustomComponent(componentPath: string, componentName?: string, attr
|
||||
// Custom components with XML
|
||||
var jsFilePath = fileResolverModule.resolveFileName(fullComponentPathFilePathWithoutExt, "js");
|
||||
|
||||
var subExports;
|
||||
var subExports = context;
|
||||
if (jsFilePath) {
|
||||
// Custom components with XML and code
|
||||
subExports = require(jsFilePath)
|
||||
|
||||
Reference in New Issue
Block a user