Skip to content

Commit c2135d4

Browse files
feat(aurelia): enable splash screen swaps on load
1 parent 790c9da commit c2135d4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/aurelia.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ export class Aurelia {
139139

140140
compositionEngine = this.container.get(CompositionEngine);
141141
instruction.viewModel = root;
142-
instruction.viewSlot = new ViewSlot(this.host, true);
143142
instruction.container = instruction.childContainer = this.container;
143+
instruction.viewSlot = new ViewSlot(this.host, true);
144+
instruction.viewSlot.transformChildNodesIntoView();
144145

145146
return compositionEngine.compose(instruction).then(root => {
146147
this.root = root;

src/plugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ export class Plugins {
9999
return;
100100
}
101101

102-
var next = function(){
102+
var next = () => {
103103
if(current = info.shift()){
104104
return loadPlugin(aurelia, loader, current).then(next);
105105
}
106106

107107
this.processed = true;
108108
return Promise.resolve();
109-
}
109+
};
110110

111111
return next();
112112
}

0 commit comments

Comments
 (0)