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

Function waitForTick

lib/test/angular/1.7.0/angular.js:6175–6184  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

6173 var waitQueue = [];
6174
6175 function waitForTick(fn) {
6176 waitQueue.push(fn);
6177 if (waitQueue.length > 1) return;
6178 $$rAF(function() {
6179 for (var i = 0; i < waitQueue.length; i++) {
6180 waitQueue[i]();
6181 }
6182 waitQueue = [];
6183 });
6184 }
6185
6186 return function() {
6187 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected