MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / $$AnimateAsyncRunFactoryProvider

Function $$AnimateAsyncRunFactoryProvider

lib/test/angular/1.5.0/angular.js:5501–5526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5499}];
5500
5501var $$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
5528var $$AnimateRunnerFactoryProvider = function() {
5529 this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$document', '$timeout',

Callers

nothing calls this directly

Calls 2

waitForTickFunction · 0.70
callbackFunction · 0.70

Tested by

no test coverage detected