Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove action bubbling #61

Closed
wants to merge 1 commit into from
Closed

Conversation

poteto
Copy link
Collaborator

@poteto poteto commented May 10, 2017

Relatively large re-write that removes action bubbling. When looking up handler infos we constrain to the current route and its index subroute, if present. We then look for an action from routeName.index to routeName (in that order). Therefore, if routeName.index has an action, it takes precedence over routeName's action of the same name.

Closes #58
Closes #59

@poteto poteto changed the title Closes #58 Remove action bubbling May 10, 2017
@poteto poteto force-pushed the feature/58-remove-bubbling branch from 8b677b3 to 2f4d754 Compare May 10, 2017 07:00
@poteto poteto requested a review from rwjblue May 10, 2017 07:03
@poteto poteto force-pushed the feature/58-remove-bubbling branch from 69c71b5 to aee52fb Compare May 10, 2017 07:30
- Add typescript comments
- Update readme
- Drop 1.13 support
@poteto poteto force-pushed the feature/58-remove-bubbling branch from aee52fb to 67b8506 Compare May 10, 2017 07:32
```

If no action is found after bubbling, an error will be raised. The `route-action` also has a return value:
If no action is found, an error will be raised. The `route-action` also has a return value:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to say "found in the current route"?

@@ -65,7 +47,7 @@ You may also use in conjunction with the `{{action}}` helper:

## Compatibility

This addon will work on Ember versions `1.13.x` and up only, due to use of the new `Helper` implementation.
This addon will work on Ember versions `2.x` and up only.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are going for "breaking changes" maybe we can just say 2.4?

@@ -1,3 +1,4 @@
// @ts-nocheck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this do?

@poteto poteto closed this Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants