-
-
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 release] unregister views from viewRegistry (lts-2-8) #14528
Conversation
@@ -218,12 +218,12 @@ class Renderer { | |||
} | |||
|
|||
_register(view) { | |||
assert('Attempted to register a view with an id already in use: ' + view.elementId, !this._viewRegistry[this.elementId]); | |||
assert('Attempted to register a view with an id already in use: ' + view.elementId, !view._viewRegistry[this.elementId]); |
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.
this should be this._viewRegistry
, but view.elementId
right ?
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.
yup
2610da7
to
a382d66
Compare
This needs to target |
@@ -223,7 +223,7 @@ class Renderer { | |||
} | |||
|
|||
_unregister(view) { | |||
delete this._viewRegistry[this.elementId]; | |||
delete this._viewRegistry[view.elementId]; |
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.
Seems fine to change here, but this file isn't used at all on 2.8/2.9 (since the ember-glimmer flag is off).
Damn. I'm sorry about this @stefanpenner, I fixed this in #14100 but didn't properly mark it as |
I had forgotten that we can do this via normal Github UI now, I updated. |
Rebased on top of #14531 (to fix the JSHint errors this was having). |
[FIXES #14526]
needs test(tests added upstream in Ensure view registry entries can be unregistered properly. #14100)