()
| 17275 | } |
| 17276 | |
| 17277 | function Deferred() { |
| 17278 | var promise = this.promise = new Promise(); |
| 17279 | //Non prototype methods necessary to support unbound execution :/ |
| 17280 | this.resolve = function(val) { resolvePromise(promise, val); }; |
| 17281 | this.reject = function(reason) { rejectPromise(promise, reason); }; |
| 17282 | this.notify = function(progress) { notifyPromise(promise, progress); }; |
| 17283 | } |
| 17284 | |
| 17285 | |
| 17286 | function Promise() { |
nothing calls this directly
no test coverage detected