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 beta] Ensure parentView includes yielding component. #11266

Merged
merged 1 commit into from
May 25, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented May 24, 2015

Fixes #11170.

@mike-north
Copy link
Contributor

Thanks for this! It unblocks a large amount of glimmer testing


registry.register('component:x-outer', Component.extend({
init() {
this._super(...arguments);
Copy link
Member

Choose a reason for hiding this comment

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

Fun fact: This transpiles directly to:

this._super.apply(this, arguments);

Which is awesome. Elsewhere in ember we use (and I am far less crazy about):

registry.register('component:x-outer', Component.extend({
   init(...args) {
    this._super(...args);
    outer = this;
      }
 }));

Which builds an intermediate array of args before unrolling.

rwjblue added a commit that referenced this pull request May 25, 2015
[BUGFIX beta] Ensure `parentView` includes yielding component.
@rwjblue rwjblue merged commit 2058034 into emberjs:master May 25, 2015
@rwjblue rwjblue deleted the fix-parentView branch May 25, 2015 01:18
@mike-north
Copy link
Contributor

when can we see this in canary/beta channel?

@rwjblue
Copy link
Member Author

rwjblue commented May 25, 2015

Should already be available from bower for both beta and canary channels.

@tpitale
Copy link
Contributor

tpitale commented Jul 10, 2015

Did this get reverted before 2.0.0-beta.1? I can't seem to find this change, and I think I'm seeing this causing an error in adopted-ember-addons/emberx-select#44 in this code https://github.com/thefrontside/emberx-select/blob/54f9aee9e9b53c586623646a7f8966ce26321736/addon/components/x-option.js#L58

cowboyd added a commit to adopted-ember-addons/emberx-select that referenced this pull request Jul 20, 2015
In order to fetch the parentView for an element reliably, we depend on a
bugfix that only came available in Ember v1.13.4

emberjs/ember.js#11266

This also adds a test case that was breaking in 1.13.{0-3}

resolves #44
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.

[Glimmer] Nested components no longer have access to their parent?
4 participants