MCPcopy Index your code
hub / github.com/angular-ui/ui-router / waitForTick

Function waitForTick

test/angular/1.7/angular.js:6248–6257  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

6246 var waitQueue = [];
6247
6248 function waitForTick(fn) {
6249 waitQueue.push(fn);
6250 if (waitQueue.length > 1) return;
6251 $$rAF(function() {
6252 for (var i = 0; i < waitQueue.length; i++) {
6253 waitQueue[i]();
6254 }
6255 waitQueue = [];
6256 });
6257 }
6258
6259 return function() {
6260 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected