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

Function waitForTick

lib/test/angular/1.8.0/angular.js:6313–6322  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

6311 var waitQueue = [];
6312
6313 function waitForTick(fn) {
6314 waitQueue.push(fn);
6315 if (waitQueue.length > 1) return;
6316 $$rAF(function() {
6317 for (var i = 0; i < waitQueue.length; i++) {
6318 waitQueue[i]();
6319 }
6320 waitQueue = [];
6321 });
6322 }
6323
6324 return function() {
6325 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected