()
| 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 }; |
nothing calls this directly
no test coverage detected