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

Function notifyProgress

lib/test/angular/1.5.0/angular-animate.js:2660–2676  ·  view source on GitHub ↗
(runner, event, phase, data)

Source from the content-addressed store, hash-verified

2658 return runner;
2659
2660 function notifyProgress(runner, event, phase, data) {
2661 runInNextPostDigestOrNow(function() {
2662 var callbacks = findCallbacks(parent, element, event);
2663 if (callbacks.length) {
2664 // do not optimize this call here to RAF because
2665 // we don't know how heavy the callback code here will
2666 // be and if this code is buffered then this can
2667 // lead to a performance regression.
2668 $$rAF(function() {
2669 forEach(callbacks, function(callback) {
2670 callback(element, phase, data);
2671 });
2672 });
2673 }
2674 });
2675 runner.progress(event, phase, data);
2676 }
2677
2678 function close(reject) { // jshint ignore:line
2679 clearGeneratedClasses(element, options);

Callers 1

queueAnimationFunction · 0.70

Calls 3

findCallbacksFunction · 0.70
forEachFunction · 0.70
callbackFunction · 0.70

Tested by

no test coverage detected