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

Function notifyProgress

lib/test/angular/1.6.7/angular-animate.js:2700–2719  ·  view source on GitHub ↗
(runner, event, phase, data)

Source from the content-addressed store, hash-verified

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