Skip to content

Commit

Permalink
feat(controller): pass not only the owningView to the view-model, but…
Browse files Browse the repository at this point in the history
… the component's view as well
  • Loading branch information
EisenbergEffect committed Nov 14, 2015
1 parent 5a61865 commit 5ee79b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export class Controller {

/**
* Invoked when the view which contains this controller is created.
* @param view The view inside which this controller resides.
* @param owningView The view inside which this controller resides.
*/
created(view): void {
created(owningView): void {
if (this.behavior.handlesCreated) {
this.viewModel.created(view);
this.viewModel.created(owningView, this.view);
}
}

Expand Down

0 comments on commit 5ee79b7

Please sign in to comment.