Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

fix(refresherController): do not assume that user-supplied promises have a… #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

floriansimon1
Copy link

@floriansimon1 floriansimon1 commented Jun 14, 2017

… finally() method

Fallback to transparent then() instead

Short description of what this resolves:

ionicRefresher, or whatever it's called, expects promises returned in refresh callbacks to have finally() methods. When I return a native promise from these callbacks, I want Ionic to not crash my application

Changes proposed in this pull request:

When finally() is not available, fallback to using a transparent then()

Ionic Version: 1.x

… finally() method

Fallback to transparent then() instead
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant