MCPcopy Create free account
hub / github.com/angular-ui/ui-router / waitForTick

Function waitForTick

test/angular/1.4/angular.js:5465–5474  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

5463 var waitQueue = [];
5464
5465 function waitForTick(fn) {
5466 waitQueue.push(fn);
5467 if (waitQueue.length > 1) return;
5468 $$rAF(function() {
5469 for (var i = 0; i < waitQueue.length; i++) {
5470 waitQueue[i]();
5471 }
5472 waitQueue = [];
5473 });
5474 }
5475
5476 return function() {
5477 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected