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

Pr 5420: fix($timeout.$flush): make $flush follow the timeline #14686

Closed
wants to merge 2 commits into from

Conversation

petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented May 27, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

fix

What is the current behavior? (You can also link to an open issue here)

See #5420

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change?

Please check if the PR fulfills these requirements

Other information:

lgalfaso and others added 2 commits May 27, 2016 12:20
Fix an issue when flushing a $timeout function and, this function,
calls $timeout once again. When this is the case, the new timeout
function should be called at the thoerical `now` of when the function
was called plus the new period
…lbacks

If a $timeout handler calls $timeout itself, this new $timeout should be
added to the mock deferred queue with a "now" time based on when the original
handler was triggered.

Previously it was being added with a now time of when the `$timeout.flush`
method was originally called.

Closes angular#5420
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

1 similar comment
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@petebacondarwin petebacondarwin added this to the 1.5.6 milestone May 27, 2016
@Narretz Narretz changed the title Pr 5420 Pr 5420: fix($timeout.$flush): make $flush follow the timeline May 27, 2016
@lgalfaso
Copy link
Contributor

LGTM :)

petebacondarwin pushed a commit that referenced this pull request May 27, 2016
…lbacks

If a $timeout handler calls $timeout itself, this new $timeout should be
added to the mock deferred queue with a "now" time based on when the original
handler was triggered.

Previously it was being added with a now time of when the `$timeout.flush`
method was originally called.

Closes #5420
Closes #14686
IgorMinar pushed a commit that referenced this pull request Jun 20, 2016
…lbacks

If a $timeout handler calls $timeout itself, this new $timeout should be
added to the mock deferred queue with a "now" time based on when the original
handler was triggered.

Previously it was being added with a now time of when the `$timeout.flush`
method was originally called.

Closes #5420
Closes #14686
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.

3 participants