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

Function waitForTick

lib/test/angular/1.6.7/angular.js:6115–6124  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

6113 var waitQueue = [];
6114
6115 function waitForTick(fn) {
6116 waitQueue.push(fn);
6117 if (waitQueue.length > 1) return;
6118 $$rAF(function() {
6119 for (var i = 0; i < waitQueue.length; i++) {
6120 waitQueue[i]();
6121 }
6122 waitQueue = [];
6123 });
6124 }
6125
6126 return function() {
6127 var passed = false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected