MCPcopy
hub / github.com/angular-ui/ui-grid / notifyProgress

Function notifyProgress

lib/test/angular/1.8.0/angular-animate.js:2696–2715  ·  view source on GitHub ↗
(runner, event, phase, data)

Source from the content-addressed store, hash-verified

2694 return runner;
2695
2696 function notifyProgress(runner, event, phase, data) {
2697 runInNextPostDigestOrNow(function() {
2698 var callbacks = findCallbacks(parentNode, node, event);
2699 if (callbacks.length) {
2700 // do not optimize this call here to RAF because
2701 // we don't know how heavy the callback code here will
2702 // be and if this code is buffered then this can
2703 // lead to a performance regression.
2704 $$rAF(function() {
2705 forEach(callbacks, function(callback) {
2706 callback(element, phase, data);
2707 });
2708 cleanupEventListeners(phase, node);
2709 });
2710 } else {
2711 cleanupEventListeners(phase, node);
2712 }
2713 });
2714 runner.progress(event, phase, data);
2715 }
2716
2717 function close(reject) {
2718 clearGeneratedClasses(element, options);

Callers 1

queueAnimationFunction · 0.70

Calls 4

findCallbacksFunction · 0.70
forEachFunction · 0.70
callbackFunction · 0.70
cleanupEventListenersFunction · 0.70

Tested by

no test coverage detected