()
| 17319 | } |
| 17320 | |
| 17321 | function Deferred() { |
| 17322 | var promise = this.promise = new Promise(); |
| 17323 | //Non prototype methods necessary to support unbound execution :/ |
| 17324 | this.resolve = function(val) { resolvePromise(promise, val); }; |
| 17325 | this.reject = function(reason) { rejectPromise(promise, reason); }; |
| 17326 | this.notify = function(progress) { notifyPromise(promise, progress); }; |
| 17327 | } |
| 17328 | |
| 17329 | |
| 17330 | function Promise() { |
nothing calls this directly
no test coverage detected