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

check for null references on $destroy and updateGridLayout #1133

Merged

Conversation

mikeromano38
Copy link

This is a proposed fix for #1130 ( admittedly hacky )

It's defensive in nature and just checks if references are null before calling a method on them. I was running into instances where on routeChange, $destroy was being called several times and throwing an error.

@knutwalker
Copy link

I'm affected by this as well, see avantgarde-labs/ng-grid@17f093f

c0bra added a commit that referenced this pull request Apr 24, 2014
…stroy

check for null references on $destroy and updateGridLayout
@c0bra c0bra merged commit 7f1644f into angular-ui:2.0.8 Apr 24, 2014
@c0bra
Copy link
Contributor

c0bra commented Apr 24, 2014

Thanks for the PR! Sorry I didn't catch this in testing.

@ghost
Copy link

ghost commented Apr 24, 2014

@c0bra This fix was merged to 2.0.8 which has an angular dependency problem, right?

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.

None yet

3 participants