From d19c0ac6d32319200f0d94df9b07f63a39aecf70 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 9 Mar 2011 21:19:19 -0800 Subject: Changed the $browser.xhr parameter post from optional to required --- src/Browser.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Browser.js') 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++); -- cgit v1.2.3