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

Function $$AnimateAsyncRunFactoryProvider

lib/test/angular/1.7.0/angular.js:6171–6200  ·  view source on GitHub ↗

@this

()

Source from the content-addressed store, hash-verified

6169}];
6170
6171var $$AnimateAsyncRunFactoryProvider = /** @this */ function() {
6172 this.$get = ['$$rAF', function($$rAF) {
6173 var waitQueue = [];
6174
6175 function waitForTick(fn) {
6176 waitQueue.push(fn);
6177 if (waitQueue.length > 1) return;
6178 $$rAF(function() {
6179 for (var i = 0; i < waitQueue.length; i++) {
6180 waitQueue[i]();
6181 }
6182 waitQueue = [];
6183 });
6184 }
6185
6186 return function() {
6187 var passed = false;
6188 waitForTick(function() {
6189 passed = true;
6190 });
6191 return function(callback) {
6192 if (passed) {
6193 callback();
6194 } else {
6195 waitForTick(callback);
6196 }
6197 };
6198 };
6199 }];
6200};
6201
6202var $$AnimateRunnerFactoryProvider = /** @this */ function() {
6203 this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$$isDocumentHidden', '$timeout',

Callers

nothing calls this directly

Calls 2

waitForTickFunction · 0.70
callbackFunction · 0.70

Tested by

no test coverage detected