()
| 17958 | } |
| 17959 | |
| 17960 | function Deferred() { |
| 17961 | var promise = this.promise = new Promise(); |
| 17962 | //Non prototype methods necessary to support unbound execution :/ |
| 17963 | this.resolve = function(val) { resolvePromise(promise, val); }; |
| 17964 | this.reject = function(reason) { rejectPromise(promise, reason); }; |
| 17965 | this.notify = function(progress) { notifyPromise(promise, progress); }; |
| 17966 | } |
| 17967 | |
| 17968 | |
| 17969 | function Promise() { |
nothing calls this directly
no test coverage detected