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

Function waitForTick

lib/test/angular/1.5.0/angular.js:5505–5514  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

5503 var waitQueue = [];
5504
5505 function waitForTick(fn) {
5506 waitQueue.push(fn);
5507 if (waitQueue.length > 1) return;
5508 $$rAF(function() {
5509 for (var i = 0; i < waitQueue.length; i++) {
5510 waitQueue[i]();
5511 }
5512 waitQueue = [];
5513 });
5514 }
5515
5516 return function() {
5517 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected