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

Function waitForTick

test/angular/1.6/angular.js:6135–6144  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

6133 var waitQueue = [];
6134
6135 function waitForTick(fn) {
6136 waitQueue.push(fn);
6137 if (waitQueue.length > 1) return;
6138 $$rAF(function() {
6139 for (var i = 0; i < waitQueue.length; i++) {
6140 waitQueue[i]();
6141 }
6142 waitQueue = [];
6143 });
6144 }
6145
6146 return function() {
6147 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected