Remove trailing whitespace in KO template

This commit is contained in:
SteveSandersonMS
2016-07-06 11:18:22 +01:00
parent 00b598176c
commit 7ce5f8d4ad
6 changed files with 13 additions and 13 deletions

View File

@@ -9,11 +9,11 @@ ko.components.loaders.unshift({
if (typeof componentConfig === 'function') {
// It's a lazy-loaded Webpack bundle
(componentConfig as any)(loadedModule => {
// Handle TypeScript-style default exports
// Handle TypeScript-style default exports
if (loadedModule.__esModule && loadedModule.default) {
loadedModule = loadedModule.default;
}
// Pass the loaded module to KO's default loader
ko.components.defaultLoader.loadComponent(name, loadedModule, callback);
});