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 release] unregister views from viewRegistry (lts-2-8) #14528

Merged
merged 1 commit into from
Oct 27, 2016

Conversation

stefanpenner
Copy link
Member

@stefanpenner stefanpenner commented Oct 27, 2016

[FIXES #14526]

@@ -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]);
Copy link
Contributor

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 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yup

@rwjblue
Copy link
Member

rwjblue commented Oct 27, 2016

This needs to target lts-2-8 (not release-2-8), can you update?

@@ -223,7 +223,7 @@ class Renderer {
}

_unregister(view) {
delete this._viewRegistry[this.elementId];
delete this._viewRegistry[view.elementId];
Copy link
Member

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).

@rwjblue
Copy link
Member

rwjblue commented Oct 27, 2016

Damn. I'm sorry about this @stefanpenner, I fixed this in #14100 but didn't properly mark it as [BUGFIX beta or [BUGFIX release 😞 . Thank you for fixing properly.

@rwjblue rwjblue closed this Oct 27, 2016
@rwjblue rwjblue changed the base branch from release-2-8 to lts-2-8 October 27, 2016 12:34
@rwjblue rwjblue reopened this Oct 27, 2016
@rwjblue
Copy link
Member

rwjblue commented Oct 27, 2016

This needs to target lts-2-8 (not release-2-8), can you update?

I had forgotten that we can do this via normal Github UI now, I updated.

@rwjblue rwjblue changed the title [BUGFIX release] unregister views from viewRegistry (release-2.8) [BUGFIX release] unregister views from viewRegistry (lts-2-8) Oct 27, 2016
@rwjblue
Copy link
Member

rwjblue commented Oct 27, 2016

Rebased on top of #14531 (to fix the JSHint errors this was having).

@rwjblue rwjblue merged commit dd1aa0b into lts-2-8 Oct 27, 2016
@rwjblue rwjblue deleted the fix-leak-2.8 branch October 27, 2016 14:50
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.

3 participants