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 usage of context in moduleForComponent. #157

Closed
wants to merge 4 commits into from

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jun 4, 2016

Setting context or controller on an Ember.Component was absolutely not supposed to work (ever), but this library worked around that to serve its own needs when Ember.View was deprecated and removed.

This PR makes moduleForComponent work properly against canary (soon to be 2.7.0), by avoiding this archaic concept and simply tracking the things set on the test context manually.

Setting `context` or `controller` on an `Ember.Component` was absolutely
not supposed to work (ever), but this library worked around that to
serve its own needs when `Ember.View` was deprecated and removed.

This PR makes `moduleForComponent` work properly against canary (soon to
be 2.7.0), by avoiding this archaic concept and simply tracking the
things `set` on the test context manually.
@rwjblue
Copy link
Member Author

rwjblue commented Jun 6, 2016

Closing in favor of #158

@rwjblue rwjblue closed this Jun 6, 2016
@rwjblue rwjblue deleted the fixes-for-canary branch June 6, 2016 00:14
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