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

Function notifyProgress

test/angular/1.5/angular-animate.js:2690–2709  ·  view source on GitHub ↗
(runner, event, phase, data)

Source from the content-addressed store, hash-verified

2688 return runner;
2689
2690 function notifyProgress(runner, event, phase, data) {
2691 runInNextPostDigestOrNow(function() {
2692 var callbacks = findCallbacks(parent, element, event);
2693 if (callbacks.length) {
2694 // do not optimize this call here to RAF because
2695 // we don't know how heavy the callback code here will
2696 // be and if this code is buffered then this can
2697 // lead to a performance regression.
2698 $$rAF(function() {
2699 forEach(callbacks, function(callback) {
2700 callback(element, phase, data);
2701 });
2702 cleanupEventListeners(phase, element);
2703 });
2704 } else {
2705 cleanupEventListeners(phase, element);
2706 }
2707 });
2708 runner.progress(event, phase, data);
2709 }
2710
2711 function close(reject) {
2712 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