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

fix($httpBackend): compare timeoutId with undefined in completeRequest #10177

Conversation

gyx1000
Copy link
Contributor

@gyx1000 gyx1000 commented Nov 22, 2014

fix($httpBackend): compare timeoutId with undefined in completeRequest
httpBackend with ngMock browser.defer can never cancel the first deferredFn because the timeoutId returned by defer for the first fn is a zero value.
Compare timeoutId with undefined fix this issue. Replace fakeTimeout with defer mock to test this fix.

httpBackend with ngMock browser.defer can never cancel the first deferredFn because the timeoutId returned by defer for the first fn is a zero value.
Compare timeoutId with undefined fix this issue.
@googlebot
Copy link

CLAs look good, thanks!

@gyx1000
Copy link
Contributor Author

gyx1000 commented Nov 22, 2014

@pkozlowski-opensource pkozlowski-opensource self-assigned this Nov 22, 2014
@pkozlowski-opensource pkozlowski-opensource added this to the 1.3.4 milestone Nov 23, 2014
@pkozlowski-opensource
Copy link
Member

@gyx1000 awesome, this looks good to me. I'm going to have another look at it later today, change some commit messages and land it if nothing suspicious comes to my mind.

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.

None yet

4 participants