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

Function notifyProgress

test/angular/1.4/angular-animate.js:2668–2684  ·  view source on GitHub ↗
(runner, event, phase, data)

Source from the content-addressed store, hash-verified

2666 return runner;
2667
2668 function notifyProgress(runner, event, phase, data) {
2669 runInNextPostDigestOrNow(function() {
2670 var callbacks = findCallbacks(parent, element, event);
2671 if (callbacks.length) {
2672 // do not optimize this call here to RAF because
2673 // we don't know how heavy the callback code here will
2674 // be and if this code is buffered then this can
2675 // lead to a performance regression.
2676 $$rAF(function() {
2677 forEach(callbacks, function(callback) {
2678 callback(element, phase, data);
2679 });
2680 });
2681 }
2682 });
2683 runner.progress(event, phase, data);
2684 }
2685
2686 function close(reject) { // jshint ignore:line
2687 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