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

Function waitForTick

test/angular/1.5/angular.js:5737–5746  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

5735 var waitQueue = [];
5736
5737 function waitForTick(fn) {
5738 waitQueue.push(fn);
5739 if (waitQueue.length > 1) return;
5740 $$rAF(function() {
5741 for (var i = 0; i < waitQueue.length; i++) {
5742 waitQueue[i]();
5743 }
5744 waitQueue = [];
5745 });
5746 }
5747
5748 return function() {
5749 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected