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

Function reject

lib/test/angular/1.8.0/angular.js:18175–18179  ·  view source on GitHub ↗

* @ngdoc method * @name $q#reject * @kind function * * @description * Creates a promise that is resolved as rejected with the specified `reason`. This api should be * used to forward rejection in a chain of promises. If you are dealing with the last promise in * a promise chain,

(reason)

Source from the content-addressed store, hash-verified

18173 * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
18174 */
18175 function reject(reason) {
18176 var result = new Promise();
18177 rejectPromise(result, reason);
18178 return result;
18179 }
18180
18181 function handleCallback(value, resolver, callback) {
18182 var callbackOutput = null;

Callers 2

handleCallbackFunction · 0.70

Calls 1

rejectPromiseFunction · 0.70

Tested by

no test coverage detected