()
| 5459 | }]; |
| 5460 | |
| 5461 | var $$AnimateAsyncRunFactoryProvider = function() { |
| 5462 | this.$get = ['$$rAF', function($$rAF) { |
| 5463 | var waitQueue = []; |
| 5464 | |
| 5465 | function waitForTick(fn) { |
| 5466 | waitQueue.push(fn); |
| 5467 | if (waitQueue.length > 1) return; |
| 5468 | $$rAF(function() { |
| 5469 | for (var i = 0; i < waitQueue.length; i++) { |
| 5470 | waitQueue[i](); |
| 5471 | } |
| 5472 | waitQueue = []; |
| 5473 | }); |
| 5474 | } |
| 5475 | |
| 5476 | return function() { |
| 5477 | var passed = false; |
| 5478 | waitForTick(function() { |
| 5479 | passed = true; |
| 5480 | }); |
| 5481 | return function(callback) { |
| 5482 | passed ? callback() : waitForTick(callback); |
| 5483 | }; |
| 5484 | }; |
| 5485 | }]; |
| 5486 | }; |
| 5487 | |
| 5488 | var $$AnimateRunnerFactoryProvider = function() { |
| 5489 | this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$document', '$timeout', |
nothing calls this directly
no test coverage detected