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