frame-common.ts is missing the code to automagically load the page.css file if it exists on a page that is created via JavaScript createPage function. The expected behavior should be that the page.css file is always loaded if it exists.

This commit is contained in:
Nathanael Anderson
2015-08-24 02:04:31 -05:00
parent df3d6e7834
commit a81ee1b143

View File

@ -57,6 +57,10 @@ export function resolvePageFromEntry(entry: definition.NavigationEntry): pages.P
if (moduleExports && moduleExports.createPage) { if (moduleExports && moduleExports.createPage) {
trace.write("Calling createPage()", trace.categories.Navigation); trace.write("Calling createPage()", trace.categories.Navigation);
page = moduleExports.createPage(); page = moduleExports.createPage();
var cssFileName = fileResolverModule.resolveFileName(moduleNamePath, "css");
if (cssFileName) {
page.addCssFile(cssFileName);
}
} }
else { else {
page = pageFromBuilder(moduleNamePath, moduleExports); page = pageFromBuilder(moduleNamePath, moduleExports);