()
| 17893 | } |
| 17894 | |
| 17895 | function Deferred() { |
| 17896 | var promise = this.promise = new Promise(); |
| 17897 | //Non prototype methods necessary to support unbound execution :/ |
| 17898 | this.resolve = function(val) { resolvePromise(promise, val); }; |
| 17899 | this.reject = function(reason) { rejectPromise(promise, reason); }; |
| 17900 | this.notify = function(progress) { notifyPromise(promise, progress); }; |
| 17901 | } |
| 17902 | |
| 17903 | |
| 17904 | function Promise() { |
nothing calls this directly
no test coverage detected