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

Function notifyPromise

test/angular/1.7/angular.js:18055–18072  ·  view source on GitHub ↗
(promise, progress)

Source from the content-addressed store, hash-verified

18053 }
18054
18055 function notifyPromise(promise, progress) {
18056 var callbacks = promise.$$state.pending;
18057
18058 if ((promise.$$state.status <= 0) && callbacks && callbacks.length) {
18059 nextTick(function() {
18060 var callback, result;
18061 for (var i = 0, ii = callbacks.length; i < ii; i++) {
18062 result = callbacks[i][0];
18063 callback = callbacks[i][3];
18064 try {
18065 notifyPromise(result, isFunction(callback) ? callback(progress) : progress);
18066 } catch (e) {
18067 exceptionHandler(e);
18068 }
18069 }
18070 });
18071 }
18072 }
18073
18074 /**
18075 * @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