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 canary] Ensure components actions function without controller. #12416

Merged
merged 1 commit into from
Oct 1, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Oct 1, 2015

On canary we no longer create controller and view template locals. Unfortunately, our test suite still pretends that they are there (since they are added back in by the legacy addons) so all tests pass that were using scope.getLocal('controller') and friends).

This commit adds a test for sending actions that runs without the flags enabled (the test failed prior to this change), and updates component-node-manager to provide either _controller OR _targetObject to the component that is being created.

Fixes #12409.

/cc @tomdale @wycats for review

On canary we no longer create `controller` and `view` template locals.
Unfortunately, our test suite still pretends that they are there (since
they are added back in by the legacy addons) so all tests pass that were
using `scope.getLocal('controller')` and friends).

This commit adds a test for sending actions that runs without the flags
enabled (the test failed prior to this change), and updates
component-node-manager to provide either `_controller` *OR*
`_targetObject` to the component that is being created.
@rwjblue
Copy link
Member Author

rwjblue commented Oct 1, 2015

r=@wycats in slack

rwjblue added a commit that referenced this pull request Oct 1, 2015
[BUGFIX canary] Ensure components actions function without controller.
@rwjblue rwjblue merged commit ab04e97 into emberjs:master Oct 1, 2015
@rwjblue rwjblue deleted the action-scoping branch October 1, 2015 13:36
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.

1 participant