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

don't throw exceptions if the view is destroyed before the view is resized #4364

Merged
merged 1 commit into from
Dec 6, 2015

Conversation

ptarjan
Copy link

@ptarjan ptarjan commented Sep 15, 2015

resize() is a promise, and the $destroy event can fire before it finishes, nulling out scrollView which subsequently throws an exception because we are trying to call methods on null.

@ptarjan ptarjan changed the title don't throw exceptions if the view is destroyed before the view is re… don't throw exceptions if the view is destroyed before the view is resized Sep 15, 2015
`resize()` is a promise, and the `$destroy` event can fire before it finishes, nulling out `scrollView` which subsequently throws an exception because we are trying to call methods on `null`.
@ptarjan
Copy link
Author

ptarjan commented Sep 18, 2015

ping? I'm applying this locally for my team and it is working great.

@gaetansenn
Copy link

Yes I also did a pull request but no nobody reacts ...

mlynch added a commit that referenced this pull request Dec 6, 2015
don't throw exceptions if the view is destroyed before the view is resized
@mlynch mlynch merged commit 5e26d4b into ionic-team:master Dec 6, 2015
@mlynch mlynch added this to the 1.2 milestone Dec 6, 2015
@mlynch
Copy link
Contributor

mlynch commented Dec 6, 2015

w00t thanks! Apologies for the delay

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.

4 participants