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

[BUGFIX release] Ensure {{render}} sets up target properly. #13185

Merged
merged 1 commit into from
Mar 26, 2016

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Mar 25, 2016

When the _ENABLE_LEGACY_CONTROLLER_SUPPORT flag is disabled, the controller local is undefined. This causes the controller created by {{render}} to have an undefined target (so it swallows any actions triggered).

This properly sets the target to router:main if there is no parentController present.

Fixes #13182.

When the _ENABLE_LEGACY_CONTROLLER_SUPPORT flag is disabled, the
`controller` local is `undefined`. This causes the controller created by
`{{render}}` to have an undefined `target` (so it swallows any actions
triggered).

This properly sets the `target` to `router:main` if there is no
`parentController` present.
@rwjblue rwjblue force-pushed the ensure-render-can-have-actions branch from 590ba25 to 6f01942 Compare March 25, 2016 23:23
@wycats wycats merged commit aeeec63 into emberjs:master Mar 26, 2016
@rwjblue rwjblue deleted the ensure-render-can-have-actions branch March 26, 2016 02:29
@rwjblue
Copy link
Member Author

rwjblue commented Mar 26, 2016

Thank you!

@rwjblue
Copy link
Member Author

rwjblue commented Apr 3, 2016

Included in v2.4.4.

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