()
| 5499 | }]; |
| 5500 | |
| 5501 | var $$AnimateAsyncRunFactoryProvider = function() { |
| 5502 | this.$get = ['$$rAF', function($$rAF) { |
| 5503 | var waitQueue = []; |
| 5504 | |
| 5505 | function waitForTick(fn) { |
| 5506 | waitQueue.push(fn); |
| 5507 | if (waitQueue.length > 1) return; |
| 5508 | $$rAF(function() { |
| 5509 | for (var i = 0; i < waitQueue.length; i++) { |
| 5510 | waitQueue[i](); |
| 5511 | } |
| 5512 | waitQueue = []; |
| 5513 | }); |
| 5514 | } |
| 5515 | |
| 5516 | return function() { |
| 5517 | var passed = false; |
| 5518 | waitForTick(function() { |
| 5519 | passed = true; |
| 5520 | }); |
| 5521 | return function(callback) { |
| 5522 | passed ? callback() : waitForTick(callback); |
| 5523 | }; |
| 5524 | }; |
| 5525 | }]; |
| 5526 | }; |
| 5527 | |
| 5528 | var $$AnimateRunnerFactoryProvider = function() { |
| 5529 | this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$document', '$timeout', |
nothing calls this directly
no test coverage detected