diff options
| author | Misko Hevery | 2011-03-09 21:19:19 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-03-11 14:16:52 -0800 |
| commit | d19c0ac6d32319200f0d94df9b07f63a39aecf70 (patch) | |
| tree | ed5744dbe753f3d69ef3e935528697b87536932a /src | |
| parent | 5343deb3da0e667599fe66d8efa3566b4e337a24 (diff) | |
| download | angular.js-d19c0ac6d32319200f0d94df9b07f63a39aecf70.tar.bz2 | |
Changed the $browser.xhr parameter post from optional to required
Diffstat (limited to 'src')
| -rw-r--r-- | src/Browser.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Browser.js b/src/Browser.js index 446944eb..fe6220ed 100644 --- a/src/Browser.js +++ b/src/Browser.js @@ -70,17 +70,13 @@ function Browser(window, document, body, XHR, $log) { * * @param {string} method Requested method (get|post|put|delete|head|json) * @param {string} url Requested url - * @param {string=} post Post data to send + * @param {?string} post Post data to send (null if nothing to post) * @param {function(number, string)} callback Function that will be called on response * * @description * Send ajax request */ self.xhr = function(method, url, post, callback) { - if (isFunction(post)) { - callback = post; - post = _null; - } outstandingRequestCount ++; if (lowercase(method) == 'json') { var callbackId = "angular_" + Math.random() + '_' + (idCounter++); |
