-
-
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
ember-radio-button addon not working with 1.13 betas (includes jsbins) #11301
Comments
@raycohen I think you should use
|
@OrKoN |
@raycohen I have only used it in the template like this: http://emberjs.jsbin.com/kixiteqiba/1/edit?html,css,js,output It looks like it's only available within templates... |
you cannot use |
ok. so there's no way to do what I was doing in 1.12 in 1.13+? |
In general, I think I would advise using the |
However, I definitely consider it a regression that |
Also related to #11186. |
as of 13-beta.1, the actual implementation for |
@SirZach It's implemented in the template. See ember-htmlbars/lib/hooks/get-root. It was never implemented in the component's class. |
@mmun https://github.com/emberjs/ember.js/blob/v1.12.1/packages/ember-views/lib/views/component.js it's implemented in the class there. Nice find and thanks. With the newer implementation approach, is there any way to get a hold of |
@SirZach Oops, you're right. There isn't a way to get it right now. And I'm fairly convinced you shouldn't need this though. Can your use case be accomplished within the template? If not, can you explain it? It would be helpful for me. |
My use case is for backwards compatibility. In pre 13, I could check for |
@SirZach Yeah. We're planning on making |
#11313 makes |
I think this can be closed. |
this came up trying to get the ember-radio-button addon working with the ember 1.13 betas.
I am using
if (this.get('template'))
to detect if the component is being used with a block. This is no longer working.Some jsbins that help demonstrate the behavior change:
working in ember 1.12:
http://emberjs.jsbin.com/zihixaqaxo/2/edit?html,css,js,output
not working in beta:
http://emberjs.jsbin.com/zihixaqaxo/3/edit?html,css,js,output
The text was updated successfully, but these errors were encountered: