diff options
Diffstat (limited to 'src/Browser.js')
| -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++); |
