Open aebabis opened 8 years ago
There's also another stricter version in $q
@jbedard Perhaps $q
should expose this functionality for other apps to use.
The version at promises-aplus-test-adapter
should probably be removed as $q
does not use it. I think it is not easy to expose isPromiseLike
inside $q
and make $q
use that implementation without making the code slightly weird, but if someone wants to give it a shoot, then I can review the PR
promises-aplus-test-adapter uses the following code to determine if an object is promise-like:
ngAnimate does this:
and Angular.js does this:
Perhaps they should all be changed to this: