MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / notifyPromise

Function notifyPromise

lib/test/angular/1.6.7/angular.js:17252–17269  ·  view source on GitHub ↗
(promise, progress)

Source from the content-addressed store, hash-verified

17250 }
17251
17252 function notifyPromise(promise, progress) {
17253 var callbacks = promise.$$state.pending;
17254
17255 if ((promise.$$state.status <= 0) && callbacks && callbacks.length) {
17256 nextTick(function() {
17257 var callback, result;
17258 for (var i = 0, ii = callbacks.length; i < ii; i++) {
17259 result = callbacks[i][0];
17260 callback = callbacks[i][3];
17261 try {
17262 notifyPromise(result, isFunction(callback) ? callback(progress) : progress);
17263 } catch (e) {
17264 exceptionHandler(e);
17265 }
17266 }
17267 });
17268 }
17269 }
17270
17271 /**
17272 * @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