diff options
| author | Vojta Jina | 2011-10-31 11:34:28 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-11-30 11:17:22 -0500 | 
| commit | e3e2e4436e27f69da080a5aaf06e1eb7909880cb (patch) | |
| tree | 0e8eb08d26b8b789ffade9c74be3285850310e03 /src | |
| parent | 972c3e9be0a7dc90097a0bf55c2d11a4f65ae991 (diff) | |
| download | angular.js-e3e2e4436e27f69da080a5aaf06e1eb7909880cb.tar.bz2 | |
fix($http): add .send() alias for .retry() to get better stack trace on error
Diffstat (limited to 'src')
| -rw-r--r-- | src/service/http.js | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/service/http.js b/src/service/http.js index daf12138..92b95f35 100644 --- a/src/service/http.js +++ b/src/service/http.js @@ -96,7 +96,7 @@ function $HttpProvider() {    // the actual service    function $http(config) { -    return new XhrFuture().retry(config); +    return new XhrFuture().send(config);    }    $http.pendingRequests = []; @@ -347,6 +347,9 @@ function $HttpProvider() {        return this;      }; +    // just alias so that in stack trace we can see send() instead of retry() +    this.send = this.retry; +      /**       * Abort the request       */ | 
