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

Function defer

lib/test/angular/1.5.0/angular.js:15494–15501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15492 * @returns {Deferred} Returns a new instance of deferred.
15493 */
15494 var defer = function() {
15495 var d = new Deferred();
15496 //Necessary to support unbound execution :/
15497 d.resolve = simpleBind(d, d.resolve);
15498 d.reject = simpleBind(d, d.reject);
15499 d.notify = simpleBind(d, d.notify);
15500 return d;
15501 };
15502
15503 function Promise() {
15504 this.$$state = { status: 0 };

Callers

nothing calls this directly

Calls 1

simpleBindFunction · 0.70

Tested by

no test coverage detected