Skip to content

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

Merged
mlynch merged 1 commit intoionic-team:masterfrom
ptarjan:patch-1
Dec 6, 2015
Merged

don't throw exceptions if the view is destroyed before the view is resized#4364
mlynch merged 1 commit intoionic-team:masterfrom
ptarjan:patch-1

Conversation

@ptarjan
Copy link
Copy Markdown

@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
Copy Markdown
Author

ptarjan commented Sep 18, 2015

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

@gaetansenn
Copy link
Copy Markdown

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
Copy Markdown
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