Skip to content

Commit

Permalink
fix(composition-engine): fix syntax error
Browse files Browse the repository at this point in the history
The current version throws an error when using a `<compose>` element with only the `view` attribute. This change resolves that error.

closes 6
  • Loading branch information
davismj committed Jan 29, 2015
1 parent ef3a046 commit f87668d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composition-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class CompositionEngine {
}

return instruction.view.loadViewFactory(this.viewEngine).then(viewFactory => {
result = viewFactory.create(childContainer, instruction.executionContext);
var result = viewFactory.create(instruction.childContainer, instruction.executionContext);
instruction.viewSlot.swap(result);
return result;
});
Expand Down

0 comments on commit f87668d

Please sign in to comment.