Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Conversation

@wesleycho
Copy link
Contributor

  • Add isPromiseLike public method for determining whether value is a promise-like object

This addreses #13372.

My only concern with this implementation is that IMO this doesn't really belong on $q, but maybe on the angular global itself.

@wesleycho wesleycho force-pushed the feat/isPromiseLike branch 3 times, most recently from f6134b4 to 5a3c8da Compare December 26, 2015 03:41
@lgalfaso
Copy link
Contributor

I expect that this change makes $q fail the Promise/A+ compliance test

On Saturday, December 26, 2015, Wesley Cho notifications@github.com wrote:

  • Add isPromiseLike public method for determining whether value is a
    promise-like object

This addreses #13372 #13372.

My only concern with this implementation is that IMO this doesn't really

belong on $q, but maybe on the angular global itself.

You can view, comment on, or merge this pull request online at:

#13634
Commit Summary

  • feat(q): add isPromiseLike

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#13634.

@wesleycho wesleycho force-pushed the feat/isPromiseLike branch 2 times, most recently from 28cddaf to a61f928 Compare December 26, 2015 14:10
- Add `isPromiseLike` public method for determining whether value is a promise-like object
@wesleycho
Copy link
Contributor Author

Removed the change to $q's $$resolve method - it does take away some of the motivation for this method being implemented though.

Some caveats - I'm not sure whether this function should be exposed on $q or angular. Another thing is that the change in ngAnimate appears to not be used, but if it were, it would have perf implications.

@petebacondarwin petebacondarwin added this to the 1.5.x - migration-facilitation milestone Jan 4, 2016
@Narretz Narretz modified the milestones: 1.5.x, 1.7.x Apr 12, 2018
@petebacondarwin petebacondarwin modified the milestones: 1.7.x, 1.7.x - won't fix May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants