Skip to content

Commit

Permalink
Better wording for setupController documentation
Browse files Browse the repository at this point in the history
One good sentence is better than two.
  • Loading branch information
Bestra authored Apr 3, 2017
1 parent e9f6500 commit 4c8efd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ember-routing/lib/system/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -1703,8 +1703,7 @@ let Route = EmberObject.extend(ActionHandler, Evented, {
model supplied by the `model` hook.
By default, the `setupController` hook sets the `model` property of
the controller to the `model`. If `model` is `undefined`, the default
implementation will _not_ update the `model` property of the controller.
the controller to the specified `model` when it is not `undefined`.
If you implement the `setupController` hook in your Route, it will
prevent this default behavior. If you want to preserve that behavior
Expand Down

0 comments on commit 4c8efd1

Please sign in to comment.