Skip to content

Commit

Permalink
Merge pull request emberjs#12858 from pixelhandler/docs-route-action-…
Browse files Browse the repository at this point in the history
…bubbling

[Documentation] willTransiting event bubbling to parent route
  • Loading branch information
rwjblue committed Jan 22, 2016
2 parents 2e7991e + 3f3313a commit 76e9c59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ember-routing/lib/system/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,11 @@ var Route = EmberObject.extend(ActionHandler, Evented, {
transition, you must first explicitly call
`transition.abort()`.
To allow the `willTransition` event to continue bubbling to the parent
route, use `return true;`. When the `willTransition` method has a
return value of `true` then the parent route's `willTransition` method
will be fired, enabling "bubbling" behavior for the event.
@event willTransition
@param {Transition} transition
@public
Expand Down

0 comments on commit 76e9c59

Please sign in to comment.