MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / defer

Function defer

OpenReservation/wwwroot/Scripts/angular.js:15953–15960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15951 * @returns {Deferred} Returns a new instance of deferred.
15952 */
15953 var defer = function () {
15954 var d = new Deferred();
15955 //Necessary to support unbound execution :/
15956 d.resolve = simpleBind(d, d.resolve);
15957 d.reject = simpleBind(d, d.reject);
15958 d.notify = simpleBind(d, d.notify);
15959 return d;
15960 };
15961
15962 function Promise() {
15963 this.$$state = { status: 0 };

Callers

nothing calls this directly

Calls 1

simpleBindFunction · 0.85

Tested by

no test coverage detected