-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Conversation
Thanks for this! It unblocks a large amount of glimmer testing |
|
||
registry.register('component:x-outer', Component.extend({ | ||
init() { | ||
this._super(...arguments); |
There was a problem hiding this comment.
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.
[BUGFIX beta] Ensure `parentView` includes yielding component.
when can we see this in canary/beta channel? |
Should already be available from bower for both beta and canary channels. |
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 |
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
Fixes #11170.