Repository navigation
Conversation
The given example is wrong, you can't cancel promise returned by "then" but you can do it for promise returned by "addClass".
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/. If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits. Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name. |
|
LGTM - can be merged once the CLA is signed |
|
CLA already signed |
|
CLAs look good, thanks! |
|
this is correct, but it really shouldn't be --- this is more of a bug in $q than anything else :( affects $http promises too. |
|
I don't see this as a bug in |
|
So I see in the implementation that there is a $$cancelFn attached to the original promise. @caitp - are you suggesting that |
|
yes, I think so. It would make a hell of a lot more sense than what we do now |
|
How would it know to do this? Perhaps a convention? |
The given example is wrong, you can't cancel promise returned by "then" but you can do it for promise returned by "addClass".