-
Notifications
You must be signed in to change notification settings - Fork 17
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 ember 2.8+ #18
Fix ember 2.8+ #18
Conversation
3258783
to
88786f2
Compare
@@ -17,9 +17,11 @@ export default Ember.Mixin.create({ | |||
Ember.run.schedule('afterRender', this, function(){ | |||
let childLinkSelector = this.get('linkSelector'); | |||
let childLinkElements = this.$(childLinkSelector); | |||
let applicationContainer = Ember.getOwner(this).application.__container__; | |||
let viewRegistry = applicationContainer.lookup('-view-registry:main') || Ember.View.views; |
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.
Curious if Ember.View.views
is ever used.
@alexspeller this should be ready for your eyes |
310e550
to
ffde375
Compare
When using `didRender` it caused an infinate render loop. Switching to `didReceiveAttrs` fixes the issue
👍 awesome, thanks for this. Making a new release now |
Version 0.3.0 has been published to npm, thanks again for your help! |
I've just updated to Ember 2.8 and v0.3 of this addon and I'm now seeing the following error in my tests:
|
This should fix the addon for Ember 2.8 and now works with Glimmer 2 also.
It's important to note that this will only support Ember 2.3+.