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

Function notifyPromise

lib/test/angular/1.7.0/angular.js:17481–17498  ·  view source on GitHub ↗
(promise, progress)

Source from the content-addressed store, hash-verified

17479 }
17480
17481 function notifyPromise(promise, progress) {
17482 var callbacks = promise.$$state.pending;
17483
17484 if ((promise.$$state.status <= 0) && callbacks && callbacks.length) {
17485 nextTick(function() {
17486 var callback, result;
17487 for (var i = 0, ii = callbacks.length; i < ii; i++) {
17488 result = callbacks[i][0];
17489 callback = callbacks[i][3];
17490 try {
17491 notifyPromise(result, isFunction(callback) ? callback(progress) : progress);
17492 } catch (e) {
17493 exceptionHandler(e);
17494 }
17495 }
17496 });
17497 }
17498 }
17499
17500 /**
17501 * @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