When XML fragments without code not getting context from parent

This commit is contained in:
Panayot Cankov
2015-12-01 12:28:31 +02:00
parent fe209cdd02
commit e5ec759cbb
6 changed files with 40 additions and 2 deletions

View File

@@ -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)