Skip to content

Commit

Permalink
fix(router-view): ensure getComponent returns promise
Browse files Browse the repository at this point in the history
The final line of the getComponent method did not return the composed
promise. This commit fixes that error.
  • Loading branch information
EisenbergEffect committed Dec 22, 2014
1 parent 1898e1e commit 8cec29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class RouterView {
throw new Error('The view must be a string or an instance of ViewStrategy.');
}

CustomElement.anonymous(this.container, viewModel, viewStrategy).then(behaviorType => {
return CustomElement.anonymous(this.container, viewModel, viewStrategy).then(behaviorType => {
return behaviorType.create(childContainer, {executionContext:viewModel, suppressBind:true});
});
}
Expand Down

0 comments on commit 8cec29a

Please sign in to comment.