Skip to content

Clean up $rootScope.$on listeners #1495

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

Merged
merged 1 commit into from
May 2, 2017

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented May 1, 2017

Fixes a memory leak where we weren't properly unbinding listeners for $rootScope.$on events.

Fixes #1480

@spadgett spadgett requested a review from jwforres May 1, 2017 20:42
@spadgett
Copy link
Member Author

spadgett commented May 1, 2017

@jwforres This is only a problem for $rootScope.$on (not $scope.$on) since $rootScope isn't destroyed.

Copy link
Member

@jwforres jwforres left a comment

Choose a reason for hiding this comment

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

LGTM but you have a vendor diff that shouldn't be there

Fixes a memory leak where we weren't properly unbinding listeners for
$rootScope.$on events.
@spadgett spadgett force-pushed the rootscope-event-cleanup branch from c748c8f to 262e1ae Compare May 1, 2017 23:37
@spadgett
Copy link
Member Author

spadgett commented May 1, 2017

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 262e1ae

@openshift-bot
Copy link

openshift-bot commented May 1, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1307/) (Base Commit: 200c8cd)

@openshift-bot openshift-bot merged commit 66df3b8 into openshift:master May 2, 2017
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