Skip to content

Commit

Permalink
Merge pull request #30 from shinoys222/master
Browse files Browse the repository at this point in the history
Fixed Crash if the table view is removed before animation completes. …
  • Loading branch information
gontovnik committed Apr 12, 2016
2 parents 03f53f5 + 9a1e8cc commit 188a2ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DGElasticPullToRefresh/DGElasticPullToRefreshView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,11 @@ public class DGElasticPullToRefreshView: UIView {
}
}

private func animateBounce() {
private func animateBounce()
{
guard let scrollView = scrollView() else { return }
if (!self.observing) { return }


resetScrollViewContentInset(shouldAddObserverWhenFinished: false, animated: false, completion: nil)

Expand Down

0 comments on commit 188a2ff

Please sign in to comment.