Skip to content

Commit

Permalink
fix(router-view): ensure that bind callbacks execute
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 24, 2015
1 parent 37364b9 commit 07d789f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/router-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class RouterView {
}

return viewModelInfo.type.load(childContainer, viewModelInfo.value, viewStrategy).then(behaviorType => {
viewPortInstruction.behavior = behaviorType.create(childContainer, {executionContext:viewModel});
viewPortInstruction.behavior = behaviorType.create(childContainer, {executionContext:viewModel, suppressBind:true});

if(waitToSwap){
return;
Expand All @@ -42,6 +42,7 @@ export class RouterView {
}

swap(viewPortInstruction){
viewPortInstruction.behavior.view.bind(viewPortInstruction.behavior.executionContext);
this.viewSlot.swap(viewPortInstruction.behavior.view);

if(this.view){
Expand Down

0 comments on commit 07d789f

Please sign in to comment.