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

Fix for local lookup of closure components #14421

Merged
merged 1 commit into from
Oct 6, 2016

Conversation

sglanzer-deprecated
Copy link

The source/module in the env when creating a closure component is correct, but wasn't accessible/used when rendering the closure component in a child context. This fix retains the source/module and sets the env appropriately when a closure component is rendered.

@sglanzer-deprecated
Copy link
Author

@rwjblue

@rwjblue
Copy link
Member

rwjblue commented Oct 5, 2016

This looks good to me!

@Serabe - Would you mind reviewing also?

@sglanzer-deprecated
Copy link
Author

Missed a semicolon, should pass CI now

@rwjblue
Copy link
Member

rwjblue commented Oct 5, 2016

Also, just to make it clear to others, this PR is targeting release branch (as the entire ember-htmlbars package is gone in beta / canary).

@Serabe
Copy link
Member

Serabe commented Oct 5, 2016

Should we add a test for rerendering with a different component with different scope?

In any case, LGTM.

@rwjblue
Copy link
Member

rwjblue commented Oct 5, 2016

Good idea!

@sglanzer - Would you have time to add that test?

@sglanzer-deprecated
Copy link
Author

Yeah, I can add that test - so e.g. swap from local to global scope on the rerender?

@rwjblue
Copy link
Member

rwjblue commented Oct 5, 2016

@sglanzer - Yes, exactly.

@sglanzer-deprecated
Copy link
Author

Added https://github.com/emberjs/ember.js/pull/14421/files#diff-60d0781473fafba06d2d55675ee1286cR166

@rwjblue rwjblue merged commit 9d3d9bb into emberjs:release Oct 6, 2016
@rwjblue
Copy link
Member

rwjblue commented Oct 6, 2016

Thank you again @sglanzer!

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.

3 participants