SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 144 JavaScript

fix($timeout): make $flush handle new $timeouts added in $timeout callbacks

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
L
Lucas Galfasó committed
1e5d36d4b038dce8383f39b2feacd918973ef4e6
Parent: 3749c85
Committed by Peter Bacon Darwin <pete@bacondarwin.com> on 5/27/2016, 3:19:54 PM