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

Function notifyPromise

test/angular/1.6/angular.js:17437–17454  ·  view source on GitHub ↗
(promise, progress)

Source from the content-addressed store, hash-verified

17435 }
17436
17437 function notifyPromise(promise, progress) {
17438 var callbacks = promise.$$state.pending;
17439
17440 if ((promise.$$state.status <= 0) && callbacks && callbacks.length) {
17441 nextTick(function() {
17442 var callback, result;
17443 for (var i = 0, ii = callbacks.length; i < ii; i++) {
17444 result = callbacks[i][0];
17445 callback = callbacks[i][3];
17446 try {
17447 notifyPromise(result, isFunction(callback) ? callback(progress) : progress);
17448 } catch (e) {
17449 exceptionHandler(e);
17450 }
17451 }
17452 });
17453 }
17454 }
17455
17456 /**
17457 * @ngdoc method

Callers 2

DeferredFunction · 0.70
doNotifyFunction · 0.70

Calls 3

nextTickFunction · 0.70
isFunctionFunction · 0.70
callbackFunction · 0.70

Tested by

no test coverage detected